From b063dafd2df587540a6c058f518b39aa0578f068 Mon Sep 17 00:00:00 2001 From: Phoomparin Mano Date: Sun, 17 Dec 2023 22:21:03 +0700 Subject: [PATCH] chore: validation --- canvas/src/blocks/components/Settings.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/canvas/src/blocks/components/Settings.tsx b/canvas/src/blocks/components/Settings.tsx index 0be6ceb0..7634d4d7 100644 --- a/canvas/src/blocks/components/Settings.tsx +++ b/canvas/src/blocks/components/Settings.tsx @@ -55,6 +55,7 @@ export const Settings = < value={value?.toString()} onChange={(e) => { const n = parseInt(e.target.value) + if (isNaN(n)) return if (n < min) return if (n > max) return