Remove redirect when user only has access to one app

This commit is contained in:
Andrew Kingston 2021-07-06 17:00:44 +01:00
parent 929d1c73d4
commit 788f517b04
1 changed files with 1 additions and 6 deletions

View File

@ -28,12 +28,7 @@
onMount(async () => {
await organisation.init()
await apps.load()
// Skip the portal if you only have one app
if (!$auth.isBuilder && $apps.filter(publishedAppsOnly).length === 1) {
window.location = `/${publishedApps[0].prodId}`
} else {
loaded = true
}
loaded = true
})
const publishedAppsOnly = app => app.status === AppStatus.DEPLOYED