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,18 +14,16 @@ interface PortalAdminStore extends GetEnvironmentResponse {
status?: SystemStatusResponse
}
export const DEFAULT_CONFIG: PortalAdminStore = {
loaded: false,
multiTenancy: false,
cloud: false,
isDev: false,
disableAccountPortal: false,
offlineMode: false,
maintenance: [],
}
export function createAdminStore() {
const admin = writable(DEFAULT_CONFIG)
const admin = writable<PortalAdminStore>({
loaded: false,
multiTenancy: false,
cloud: false,
isDev: false,
disableAccountPortal: false,
offlineMode: false,
maintenance: [],
})
async function init() {
await getChecklist()