Fix config type
This commit is contained in:
parent
5e478f2eaa
commit
204b6d2950
|
@ -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")
|
||||
|
|
|
@ -39,7 +39,7 @@ export const createFeatureStore = () => {
|
|||
...state,
|
||||
scim: {
|
||||
...state.scim,
|
||||
isConfigFlagEnabled: scimConfig.enabled,
|
||||
isConfigFlagEnabled: scimConfig?.config?.enabled,
|
||||
},
|
||||
}))
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue