We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf577c6 commit 5e82bb6Copy full SHA for 5e82bb6
1 file changed
adminforth/spa/src/components/CustomRangePicker.vue
@@ -54,7 +54,11 @@ const maxFormatted = computed(() => {
54
return isNaN(v) ? 100 : Math.ceil(v);
55
});
56
57
-const normalize = (val: any) => (val === "" || val === null || val === undefined) ? null : Number(val);
+const normalize = (val: any) => {
58
+ if (val === "" || val === null || val === undefined) return null;
59
+ const numericValue = Number(val);
60
+ return isNaN(numericValue) ? null : numericValue;
61
+};
62
63
const start = ref<number | null>(normalize(props.valueStart));
64
const end = ref<number | null>(normalize(props.valueEnd));
0 commit comments