diff --git a/apps/admin-ui/src/realm-settings/NewClientPolicyForm.tsx b/apps/admin-ui/src/realm-settings/NewClientPolicyForm.tsx index a830347424..b777864b39 100644 --- a/apps/admin-ui/src/realm-settings/NewClientPolicyForm.tsx +++ b/apps/admin-ui/src/realm-settings/NewClientPolicyForm.tsx @@ -401,7 +401,7 @@ export default function NewClientPolicyForm() { (policy) => createdPolicy.name === policy.name ); - if (!index || index === -1) { + if (index === undefined || index === -1) { return; }