1
0
Fork 0
mirror of synced 2024-07-19 21:26:22 +12:00

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 78c8bf8533
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