From c8d11fa268cba5635f723f2a62ec76f4edf8ab86 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Wed, 29 Mar 2023 20:09:59 +0200 Subject: [PATCH] Preselect first found app if nothing specified --- src/views/Home.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index 1f361bea5..8873c22f1 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -233,9 +233,10 @@ export default { 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; this.activeApp = this.apps.find(a => a.id === appId); + if (!this.activeApp) this.activeApp = this.apps[0]; if (!this.activeApp) return console.error('Unable to find app', appId); this.selectedAppId = this.activeApp.id;