Fix default language issue on creating ticket

This commit is contained in:
ivan 2018-06-12 18:52:59 -03:00
parent 1b8444ae18
commit c26faaa902
1 changed files with 3 additions and 1 deletions

View File

@ -157,8 +157,10 @@ class CreateTicketForm extends React.Component {
}
export default connect((store) => {
const { language, supportedLanguages } = store.config;
return {
language: store.config.language,
language: _.includes(supportedLanguages, language) ? language : supportedLanguages[0],
allowAttachments: store.config['allow-attachments']
};
})(CreateTicketForm);