Browse Source

fix: user sort by email issue

pull/7342/head
Ramesh Mane 1 year ago
parent
commit
5ce0bf4e7a
  1. 2
      packages/nc-gui/composables/useUserSorts.ts

2
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) {

Loading…
Cancel
Save