If there is a widget configured without an iconClass when the mobile sidebar loads it throws an error about Cannot read property 'replace' of undefined at line 40 of _sidebarTab.js:
Remove the iconClass from a widget config and load it on a mobile device. If using the mobile emulation in browser devtools you need to reload to trigger the mobile sidebar.
Check the browser console for errors (Use F12 to access the console)
Expected results:
Either a fallback icon or an error in the dev tools regardless of whether it is loaded on mobile or desktop, so it is more obvious, other widgets should continue to load.
Actual results:
Cryptic error about Cannot read property 'replace' of undefined, other widgets listed after the problematic entry fail to load.
@duckblaster Thanks for reporting this. I have seen the issue as well and it has been fixed. I have a significantly enhanced mobile toolbar that I will be adding soon.
How often can you reproduce it?
Description:
If there is a widget configured without an iconClass when the mobile sidebar loads it throws an error about
Cannot read property 'replace' of undefined
at line 40 of_sidebarTab.js
:Steps to reproduce:
Remove the
iconClass
from a widget config and load it on a mobile device. If using the mobile emulation in browser devtools you need to reload to trigger the mobile sidebar.Expected results:
Either a fallback icon or an error in the dev tools regardless of whether it is loaded on mobile or desktop, so it is more obvious, other widgets should continue to load.![image](https://user-images.githubusercontent.com/564067/113076320-442d4a80-922b-11eb-9adb-a509901226f2.png)
Actual results:
Cryptic error about![image](https://user-images.githubusercontent.com/564067/113076279-28c23f80-922b-11eb-9b84-ef7c2d58cc86.png)
Cannot read property 'replace' of undefined
, other widgets listed after the problematic entry fail to load.Environment: