fix: fix SCIM/SAML settings persistence

This commit is contained in:
Ruben Fiszel
2025-01-27 00:26:27 +01:00
parent 13dbbf96f0
commit 7cc68a4952
2 changed files with 681 additions and 662 deletions
File diff suppressed because it is too large Load Diff
@@ -58,8 +58,8 @@
initialValues = Object.fromEntries(
(
await Promise.all(
Object.entries(settings).map(
async ([_, y]) =>
[...Object.values(settings), scimSamlSetting].map(
async (y) =>
await Promise.all(y.map(async (x) => [x.key, await getValue(x.key, x.storage)]))
)
)
@@ -134,7 +134,9 @@
let shouldReloadPage = false
if ($values) {
const allSettings = Object.values(settings).flatMap((x) => Object.entries(x))
const allSettings = [...Object.values(settings), scimSamlSetting].flatMap((x) =>
Object.entries(x)
)
let licenseKeySet = false
await Promise.all(
allSettings