Flectra Client Error: TypeError: Cannot read property 'id' of undefined
Summary
If Flectra only has one language, eg. German and you switch the user to non language (which means default language: English) and reload Flectra (click on company logo) a client error happens.
Steps to reproduce
- install fresh Flectra demo and choose German (de_CH) as main language
- log into flectra
- open users settings
- switch language to empty > no language > it will take Flectra's base language > English
- wait until reload or clicking to the company logo
Video to demonstrate: https://drive.google.com/file/d/1HPXBeT7WAOeyvpZ5FA8bgu8ZwnHlR5H-/view
What is the current bug behavior?
Flectra Client Error
What is the expected correct behavior?
no Flectra Client Error
Relevant logs and/or screenshots
Error:
Uncaught TypeError: Cannot read property 'id' of undefined
http://localhost:10069/web/content/486-77f084f/web.assets_backend.js:789
Traceback:
TypeError: Cannot read property 'id' of undefined
at Object.<anonymous> (http://localhost:10069/web/content/486-77f084f/web.assets_backend.js:789:329)
at Object.<anonymous> (http://localhost:10069/web/content/480-85c7a04/web.assets_common.js:802:681)
at fire (http://localhost:10069/web/content/480-85c7a04/web.assets_common.js:796:299)
at Object.fireWith [as resolveWith] (http://localhost:10069/web/content/480-85c7a04/web.assets_common.js:801:198)
at Object.deferred.(anonymous function) [as resolve] (http://localhost:10069/web/content/480-85c7a04/web.assets_common.js:803:56)
at Object.<anonymous> (http://localhost:10069/web/content/480-85c7a04/web.assets_common.js:3869:361)
at Object.<anonymous> (http://localhost:10069/web/content/480-85c7a04/web.assets_common.js:802:681)
at fire (http://localhost:10069/web/content/480-85c7a04/web.assets_common.js:796:299)
at Object.fireWith [as resolveWith] (http://localhost:10069/web/content/480-85c7a04/web.assets_common.js:801:198)
at Object.deferred.(anonymous function) (http://localhost:10069/web/content/480-85c7a04/web.assets_common.js:803:56)
Possible fixes
no idea ;)