refac: align the admin Users tab counts with the workspace tab count behavior (#29080)

This commit is contained in:
G30 authored and GitHub committed 2026-08-27 16:45:34 -04:00
1 parent 1c5128c4aa
commit fa7de50c60
2 files changed
+8 -2

No files matched your search

+4 -1
View File
@@ -48,6 +48,10 @@
return (b.member_count ?? 0) - (a.member_count ?? 0) || a.name.localeCompare(b.name);
});
$: if (loaded) {
adminGroupCount.set(filteredGroups.length);
}
/** @type {any} */
let defaultPermissions = {};
@@ -56,7 +60,6 @@
const setGroups = async () => {
groups = await getGroups(localStorage.token);
adminGroupCount.set(groups.length);
};
/** @param {any} updatedGroup */