Added extra null check (#4016)
This commit is contained in:
parent
ed8b1f5dca
commit
ea80b0f872
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,8 @@ export const KeyValueInput = ({ name }: KeyValueInputProps) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const isValid = watchFields.every(
|
const isValid = watchFields.every(
|
||||||
({ key, value }) => key.trim().length !== 0 && value.trim().length !== 0
|
({ key, value }) =>
|
||||||
|
key && key.trim().length !== 0 && value && value.trim().length !== 0
|
||||||
);
|
);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
Loading…
Reference in a new issue