Browse Source

fix: user sort by email issue

pull/7276/head
Ramesh Mane 11 months ago
parent
commit
393879d63b
  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) data = clone(data)
const superUserIndex = data.findIndex((user) => user?.roles?.includes('super')) 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) => { let sortedData = data.sort((a, b) => {
switch (sortsConfig.field) { switch (sortsConfig.field) {

Loading…
Cancel
Save