Fix config type

This commit is contained in:
adrinr 2023-03-29 09:31:07 +01:00
parent 5e478f2eaa
commit 204b6d2950
2 changed files with 2 additions and 2 deletions

View File

@ -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")

View File

@ -39,7 +39,7 @@ export const createFeatureStore = () => {
...state,
scim: {
...state.scim,
isConfigFlagEnabled: scimConfig.enabled,
isConfigFlagEnabled: scimConfig?.config?.enabled,
},
}))
},