fix: alignment api

This commit is contained in:
jialin
2026-05-11 19:49:21 +08:00
committed by jialin
parent 9e0dd5b003
commit b13ba0a229
33 changed files with 738 additions and 365 deletions
+11
View File
@@ -27,3 +27,14 @@ export const initialPasswordAtom = atomWithStorage<string>(
'initialPassword',
''
);
export const getCurrentOrganizationId = (): string => {
try {
const raw = localStorage.getItem('currentOrganizationId');
if (raw) {
const value = JSON.parse(raw);
if (value != null) return String(value);
}
} catch {}
return 'gpustack-organization-1';
};