From 069415630ebbe99b94367a4caded147cf84ca27c Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Fri, 29 Dec 2023 17:25:10 +0530 Subject: [PATCH] fix: filtered collaborator issue --- .../nc-gui/components/project/AccessSettings.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/nc-gui/components/project/AccessSettings.vue b/packages/nc-gui/components/project/AccessSettings.vue index 226d10e92b..006c4e80f3 100644 --- a/packages/nc-gui/components/project/AccessSettings.vue +++ b/packages/nc-gui/components/project/AccessSettings.vue @@ -38,8 +38,12 @@ const isLoading = ref(false) const isSearching = ref(false) const accessibleRoles = ref<(typeof ProjectRoles)[keyof typeof ProjectRoles][]>([]) +const filteredCollaborators = computed(() => + collaborators.value.filter((collab) => collab.email.toLowerCase().includes(userSearchText.value.toLowerCase())), +) + const sortedCollaborators = computed(() => { - return handleGetSortedData(collaborators.value, sorts.value) + return handleGetSortedData(filteredCollaborators.value, sorts.value) }) const loadCollaborators = async () => { @@ -124,10 +128,6 @@ onMounted(async () => { isLoading.value = false } }) - -const filteredCollaborators = computed(() => - collaborators.value.filter((collab) => collab.email.toLowerCase().includes(userSearchText.value.toLowerCase())), -)