fix: do not throw on invalid themes

This commit is contained in:
Baptiste Grob
2020-10-22 14:28:00 +02:00
parent c55a7e45a4
commit 27affa4cee

View File

@@ -490,6 +490,9 @@ class FooterViewCtrl extends PureViewCtrl<{}, {
reloadDockShortcuts() {
const shortcuts = [];
for (const theme of this.themesWithIcons) {
if (!theme.package_info) {
continue;
}
const name = theme.package_info.name;
const icon = theme.package_info.dock_icon;
if (!icon) {