From 7b05813e9bd616211d5c2773c407a85c832c910c Mon Sep 17 00:00:00 2001 From: Sang Le vinh Date: Thu, 16 Jan 2025 17:41:45 +0700 Subject: [PATCH] fix return 0 --- .../src/components/Workspace/FlowChart/Dialog/BoxFilter.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/Workspace/FlowChart/Dialog/BoxFilter.tsx b/frontend/src/components/Workspace/FlowChart/Dialog/BoxFilter.tsx index f4eb9e513..4034716a6 100644 --- a/frontend/src/components/Workspace/FlowChart/Dialog/BoxFilter.tsx +++ b/frontend/src/components/Workspace/FlowChart/Dialog/BoxFilter.tsx @@ -52,7 +52,7 @@ const InputDim = (props: InputDim) => { if (dim0 && dim1) { return `${Number(dim0) >= max ? max - 1 : dim0}:${Number(dim1) > max ? max : dim1}` } - if (dim1 && !dim0) return `0:${dim1}` + if (dim1 && !dim0 && isBlur) return `0:${dim1}` if (isBlur && dim0 && !dim1) return `${dim0}:${max}` return e })