Remove redundant default store value
This commit is contained in:
parent
0fd8427a0f
commit
512d87ac36
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue