Merge pull request #7246 from Budibase/fix/filter-app-by-user-group

Fix/filter app by user group
This commit is contained in:
NEOLPAR 2022-08-12 14:42:22 +01:00 committed by GitHub
commit 6851848a1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@
if (!detail) return
const groupSelected = $groups.find(x => x._id === detail)
const appIds = groupSelected?.apps.map(x => x.appId) || null
const appIds = groupSelected?.apps || null
dispatch("change", appIds)
}

View File

@ -20,7 +20,7 @@
import { store, automationStore } from "builderStore"
import { API } from "api"
import { onMount } from "svelte"
import { apps, auth, admin, templates, groups } from "stores/portal"
import { apps, auth, admin, templates } from "stores/portal"
import download from "downloadjs"
import { goto } from "@roxi/routify"
import AppRow from "components/start/AppRow.svelte"
@ -355,7 +355,7 @@
</Button>
{/if}
<div class="filter">
{#if $auth.groupsEnabled && $groups.length}
{#if $auth.groupsEnabled}
<AccessFilter on:change={accessFilterAction} />
{/if}
<Select