Observer exception handling with SFJS 0.3.64

This commit is contained in:
Mo Bitar
2019-06-06 17:57:04 -05:00
parent 4ec16b15e7
commit a944a2032f
4 changed files with 8 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
angular.module('app')
.constant('appVersion', '3.0.11')
.constant('appVersion', '3.0.12')
;

View File

@@ -196,7 +196,7 @@ angular.module('app')
modelManager.addItemSyncObserver("footer-bar-themes", "SN|Theme", (allItems, validItems, deletedItems, source) => {
let themes = modelManager.validItemsForContentType("SN|Theme").filter((candidate) => {
return !candidate.deleted && candidate.content.package_info.dock_icon;
return !candidate.deleted && candidate.content.package_info && candidate.content.package_info.dock_icon;
}).sort((a, b) => {
return a.name.toLowerCase() < b.name.toLowerCase() ? -1 : 1;
});