Remove redundant default store value

This commit is contained in:
Andrew Kingston 2024-12-12 14:57:24 +00:00
parent 0fd8427a0f
commit 512d87ac36
No known key found for this signature in database
1 changed files with 9 additions and 11 deletions

View File

@ -14,7 +14,8 @@ interface PortalAdminStore extends GetEnvironmentResponse {
status?: SystemStatusResponse status?: SystemStatusResponse
} }
export const DEFAULT_CONFIG: PortalAdminStore = { export function createAdminStore() {
const admin = writable<PortalAdminStore>({
loaded: false, loaded: false,
multiTenancy: false, multiTenancy: false,
cloud: false, cloud: false,
@ -22,10 +23,7 @@ export const DEFAULT_CONFIG: PortalAdminStore = {
disableAccountPortal: false, disableAccountPortal: false,
offlineMode: false, offlineMode: false,
maintenance: [], maintenance: [],
} })
export function createAdminStore() {
const admin = writable(DEFAULT_CONFIG)
async function init() { async function init() {
await getChecklist() await getChecklist()