Config can be empty (#3803)

This commit is contained in:
Erik Jan de Wit 2022-11-18 10:54:21 -05:00 committed by GitHub
parent 1e7ae6b2ea
commit 0a3564bb3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,12 +148,12 @@ export default function UserFederationLdapSettings() {
form.reset({ ...component });
form.setValue(
"config.periodicChangedUsersSync",
component.config?.["changedSyncPeriod"][0] !== "-1"
component.config?.["changedSyncPeriod"]?.[0] !== "-1"
);
form.setValue(
"config.periodicFullSync",
component.config?.["fullSyncPeriod"][0] !== "-1"
component.config?.["fullSyncPeriod"]?.[0] !== "-1"
);
};