From 512d87ac36de50e1e596c65759200db83b052801 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 12 Dec 2024 14:57:24 +0000 Subject: [PATCH] Remove redundant default store value --- packages/builder/src/stores/portal/admin.ts | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/packages/builder/src/stores/portal/admin.ts b/packages/builder/src/stores/portal/admin.ts index 9003be8953..2141cf1b9c 100644 --- a/packages/builder/src/stores/portal/admin.ts +++ b/packages/builder/src/stores/portal/admin.ts @@ -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({ + loaded: false, + multiTenancy: false, + cloud: false, + isDev: false, + disableAccountPortal: false, + offlineMode: false, + maintenance: [], + }) async function init() { await getChecklist()