Fix bounds check for adding client profile (#4140)

This commit is contained in:
Erik Jan de Wit 2023-01-07 22:22:48 +01:00 committed by GitHub
parent e15ac55570
commit 3c677f4b53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -401,7 +401,7 @@ export default function NewClientPolicyForm() {
(policy) => createdPolicy.name === policy.name
);
if (!index || index === -1) {
if (index === undefined || index === -1) {
return;
}