We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dca097e commit 63a7b1dCopy full SHA for 63a7b1d
src/components/inputs/reactHookForm/utils/HelperPreviousValue.tsx
@@ -27,7 +27,11 @@ export function HelperPreviousValue({
27
28
// this is not a real TS check as (previousValue === undefined)
29
// but prevent some bypassed TS checks from a parent which possibly sends null
30
- if ((!previousValue && previousValue !== 0) || Number.isNaN(previousValue)) {
+ if (
31
+ (!previousValue && previousValue !== 0) ||
32
+ Number.isNaN(previousValue) ||
33
+ previousValue === 'NaN' /* TODO to remove when network-map-server never return string 'NaN' */
34
+ ) {
35
return undefined;
36
}
37
0 commit comments