1
0
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:
Sylvain 2023-02-03 12:48:00 +01:00 committed by Sylvain
parent 23ba44bc57
commit a6f98fb6ce

View File

@ -64,7 +64,7 @@ export const FormInput = <TFieldValues extends FieldValues, TInputType>({ id, re
}
return num;
}
setCharacterCount(value.length);
setCharacterCount(value?.length || 0);
return value;
}
};