mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-27 15:54:23 +02:00
Fix default language issue on creating ticket
This commit is contained in:
parent
1b8444ae18
commit
c26faaa902
@ -157,8 +157,10 @@ class CreateTicketForm extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default connect((store) => {
|
export default connect((store) => {
|
||||||
|
const { language, supportedLanguages } = store.config;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
language: store.config.language,
|
language: _.includes(supportedLanguages, language) ? language : supportedLanguages[0],
|
||||||
allowAttachments: store.config['allow-attachments']
|
allowAttachments: store.config['allow-attachments']
|
||||||
};
|
};
|
||||||
})(CreateTicketForm);
|
})(CreateTicketForm);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user