Fix bounds check for adding client profile (#4140)
This commit is contained in:
parent
e15ac55570
commit
3c677f4b53
1 changed files with 1 additions and 1 deletions
|
@ -401,7 +401,7 @@ export default function NewClientPolicyForm() {
|
|||
(policy) => createdPolicy.name === policy.name
|
||||
);
|
||||
|
||||
if (!index || index === -1) {
|
||||
if (index === undefined || index === -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue