From 204b6d2950f17600161958a2269ddddf84e6d610 Mon Sep 17 00:00:00 2001 From: adrinr Date: Wed, 29 Mar 2023 09:31:07 +0100 Subject: [PATCH] Fix config type --- .../builder/src/pages/builder/portal/settings/auth/scim.svelte | 2 +- packages/builder/src/stores/portal/features.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/pages/builder/portal/settings/auth/scim.svelte b/packages/builder/src/pages/builder/portal/settings/auth/scim.svelte index dc2d61aa47..a0b114b79a 100644 --- a/packages/builder/src/pages/builder/portal/settings/auth/scim.svelte +++ b/packages/builder/src/pages/builder/portal/settings/auth/scim.svelte @@ -38,7 +38,7 @@ async function fetchConfig() { try { const scimConfig = await API.getConfig(configType) - scimEnabled = scimConfig?.enabled + scimEnabled = scimConfig?.config?.enabled } catch (error) { console.error(error) notifications.error("Error fetching SCIM config") diff --git a/packages/builder/src/stores/portal/features.js b/packages/builder/src/stores/portal/features.js index 977453e6e6..4334fda3c4 100644 --- a/packages/builder/src/stores/portal/features.js +++ b/packages/builder/src/stores/portal/features.js @@ -39,7 +39,7 @@ export const createFeatureStore = () => { ...state, scim: { ...state.scim, - isConfigFlagEnabled: scimConfig.enabled, + isConfigFlagEnabled: scimConfig?.config?.enabled, }, })) },