Ensure we do not crash if apps can't be listed
This commit is contained in:
+1
-1
@@ -164,7 +164,7 @@ export default {
|
||||
console.error('Failed to list apps', error);
|
||||
this.apps = [];
|
||||
} 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';
|
||||
|
||||
Reference in New Issue
Block a user