fix: cannot read properties of null (reading 'sort')

This commit is contained in:
chenos 2025-03-13 16:25:58 +08:00
parent 30cca1d79c
commit 1be324f524

View File

@ -96,6 +96,6 @@ export class ACLSettingsUI {
} }
return tab; return tab;
}) })
.sort((a, b) => (a.sort ?? 100) - (b.sort ?? 100)); .sort((a, b) => (a?.sort ?? 100) - (b?.sort ?? 100));
} }
} }