diff --git a/plugins/workbench-resources/src/components/AppSwitcher.svelte b/plugins/workbench-resources/src/components/AppSwitcher.svelte index b4ba8be049..8240c1c982 100644 --- a/plugins/workbench-resources/src/components/AppSwitcher.svelte +++ b/plugins/workbench-resources/src/components/AppSwitcher.svelte @@ -68,7 +68,9 @@ const me = getCurrentAccount() - const filteredApps = apps.filter((it) => !hiddenAppsIds.includes(it._id) && isAppAllowed(it, me)) + const filteredApps = apps.filter( + (it) => !hiddenAppsIds.includes(it._id) && isAppAllowed(it, me) && it.position !== 'top' + ) diff --git a/plugins/workbench-resources/src/components/Applications.svelte b/plugins/workbench-resources/src/components/Applications.svelte index b843875d31..3cb831d829 100644 --- a/plugins/workbench-resources/src/components/Applications.svelte +++ b/plugins/workbench-resources/src/components/Applications.svelte @@ -43,9 +43,8 @@ const me = getCurrentAccount() - $: filteredApps = apps.filter((it) => !hiddenAppsIds.includes(it._id) && isAppAllowed(it, me)) - $: topApps = filteredApps.filter((it) => it.position === 'top') - $: bottomdApps = filteredApps.filter((it) => it.position !== 'top') + $: topApps = apps.filter((it) => it.position === 'top') + $: bottomdApps = apps.filter((it) => !hiddenAppsIds.includes(it._id) && isAppAllowed(it, me) && it.position !== 'top')