Ensure we do not crash if apps can't be listed

This commit is contained in:
Johannes Zellner
2023-03-27 19:25:01 +02:00
parent 2995f5894d
commit fd39b498e5
+1 -1
View File
@@ -164,7 +164,7 @@ export default {
console.error('Failed to list apps', error); console.error('Failed to list apps', error);
this.apps = []; this.apps = [];
} else { } else {
this.apps = result.body.apps.filter(a => !!a.manifest.addons.localstorage); this.apps = result.body ? result.body.apps.filter(a => !!a.manifest.addons.localstorage) : [];
} }
const appId = this.$route.params.appId || 'e78a515c-2153-48a6-aa62-badd6a540d4e'; const appId = this.$route.params.appId || 'e78a515c-2153-48a6-aa62-badd6a540d4e';