From 3ef05e3d3635b5809421105064320e9490a6daaf Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Thu, 12 Aug 2021 14:20:23 +0100 Subject: [PATCH] Add default config to admin store --- packages/builder/src/stores/portal/admin.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/stores/portal/admin.js b/packages/builder/src/stores/portal/admin.js index aac8204089..4d0530f7ae 100644 --- a/packages/builder/src/stores/portal/admin.js +++ b/packages/builder/src/stores/portal/admin.js @@ -3,9 +3,16 @@ import api from "builderStore/api" import { auth } from "stores/portal" export function createAdminStore() { - const admin = writable({ + + const DEFAULT_CONFIG = { loaded: false, - }) + multiTenancy: false, + sandbox: false, + onboardingProgress: 0, + checklist: {"apps":0,"smtp":false,"adminUser":false,"sso":false} + } + + const admin = writable(DEFAULT_CONFIG) async function init() { try {