From 393879d63b0df6ef317edc6f17d715f0dafdd8f9 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Sat, 30 Dec 2023 12:46:24 +0530 Subject: [PATCH] fix: user sort by email issue --- packages/nc-gui/composables/useUserSorts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/composables/useUserSorts.ts b/packages/nc-gui/composables/useUserSorts.ts index 0907e16361..4644bd86ac 100644 --- a/packages/nc-gui/composables/useUserSorts.ts +++ b/packages/nc-gui/composables/useUserSorts.ts @@ -115,7 +115,7 @@ export function useUserSorts(roleType: 'Workspace' | 'Org' | 'Project') { data = clone(data) const superUserIndex = data.findIndex((user) => user?.roles?.includes('super')) - const superUser = superUserIndex !== -1 ? data.splice(superUserIndex, 1) : null + const superUser = sortsConfig.field === 'roles' && superUserIndex !== -1 ? data.splice(superUserIndex, 1) : null let sortedData = data.sort((a, b) => { switch (sortsConfig.field) {