Added extra null check (#4016)

This commit is contained in:
Erik Jan de Wit 2022-12-13 11:16:46 -05:00 committed by GitHub
parent ed8b1f5dca
commit ea80b0f872
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(() => {