From e91f9ea5cd61a1d1e66e43555d2a9763cda63598 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Fri, 5 May 2023 11:34:20 +0100 Subject: [PATCH] Refetch initial data instead of refreshing --- .../src/pages/builder/portal/users/groups/[groupId].svelte | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte b/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte index d91c793cf1..8acd4959b4 100644 --- a/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte +++ b/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte @@ -95,7 +95,6 @@ $: page = $searchUsersPageInfo.page $: searchUsers(page, searchTerm) $: group = $groups.find(x => x._id === groupId) - $: filtered = $users.data $: groupApps = $apps .filter(app => groups.actions @@ -151,7 +150,7 @@ const removeUser = async id => { await groups.actions.removeUser(groupId, id) - fetchGroupUsers.refresh() + fetchGroupUsers.getInitialData() } const removeApp = async app => { @@ -221,11 +220,11 @@ list={$users.data} on:select={async e => { await groups.actions.addUser(groupId, e.detail) - fetchGroupUsers.refresh() + fetchGroupUsers.getInitialData() }} on:deselect={async e => { await groups.actions.removeUser(groupId, e.detail) - fetchGroupUsers.refresh() + fetchGroupUsers.getInitialData() }} />