From 0a3564bb3fe3ec5ccda8aaddedf4cdcdd1143e51 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Fri, 18 Nov 2022 10:54:21 -0500 Subject: [PATCH] Config can be empty (#3803) --- .../src/user-federation/UserFederationLdapSettings.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/admin-ui/src/user-federation/UserFederationLdapSettings.tsx b/apps/admin-ui/src/user-federation/UserFederationLdapSettings.tsx index ad48670d48..d320ab0e51 100644 --- a/apps/admin-ui/src/user-federation/UserFederationLdapSettings.tsx +++ b/apps/admin-ui/src/user-federation/UserFederationLdapSettings.tsx @@ -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" ); };