mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-03-15 12:29:16 +01:00
(bug) crash on empty input
This commit is contained in:
parent
23ba44bc57
commit
a6f98fb6ce
@ -64,7 +64,7 @@ export const FormInput = <TFieldValues extends FieldValues, TInputType>({ id, re
|
||||
}
|
||||
return num;
|
||||
}
|
||||
setCharacterCount(value.length);
|
||||
setCharacterCount(value?.length || 0);
|
||||
return value;
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user