From 1f67e325902a3115ca45f83aa1a7100646815772 Mon Sep 17 00:00:00 2001 From: yuda Date: Wed, 18 Dec 2024 13:04:14 +0900 Subject: [PATCH] fix: fix minor bug in Format Rules field Signed-off-by: yuda --- .../advanced-format-rules/WidgetFieldFormatRules.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/web/src/common/modules/widgets/_widget-fields/advanced-format-rules/WidgetFieldFormatRules.vue b/apps/web/src/common/modules/widgets/_widget-fields/advanced-format-rules/WidgetFieldFormatRules.vue index 1a737259d1..eed8e2bb31 100644 --- a/apps/web/src/common/modules/widgets/_widget-fields/advanced-format-rules/WidgetFieldFormatRules.vue +++ b/apps/web/src/common/modules/widgets/_widget-fields/advanced-format-rules/WidgetFieldFormatRules.vue @@ -138,9 +138,15 @@ const handleUpdateField = (val: string) => { type="number" :min="0" placeholder="3000" - :invalid="!rule.number?.length" + :invalid="Number.isNaN(rule.number)" @update:value="handleFormatRuleInput(idx, 'number', $event)" - /> + > + +