From ec8381d9a79a913757c15c984a7b733d0a1f7ff1 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Wed, 26 Feb 2025 14:44:50 +0800 Subject: [PATCH] fix: Resolve the issue of a function returning 0 as a result (#2389) --- ui/src/views/function-lib/component/FunctionDebugDrawer.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/views/function-lib/component/FunctionDebugDrawer.vue b/ui/src/views/function-lib/component/FunctionDebugDrawer.vue index 78fbb650a90..44856ac820a 100644 --- a/ui/src/views/function-lib/component/FunctionDebugDrawer.vue +++ b/ui/src/views/function-lib/component/FunctionDebugDrawer.vue @@ -84,7 +84,7 @@ shadow="never" style="max-height: 350px; overflow: scroll" > - {{ result || '-' }} + {{ String(result) == '0' ? 0 : result || '-' }}