diff --git a/ui/src/workflow-canvas/nodes/tool-custom-node/details/index.vue b/ui/src/workflow-canvas/nodes/tool-custom-node/details/index.vue
index 51d3a237849..2f2b4707574 100644
--- a/ui/src/workflow-canvas/nodes/tool-custom-node/details/index.vue
+++ b/ui/src/workflow-canvas/nodes/tool-custom-node/details/index.vue
@@ -31,7 +31,7 @@ defineProps<{
{{ t('execution.details.output') }}
- {{ data.result || '-' }}
+ {{ data.result == null || data.result === '' ? '-' : data.result }}
diff --git a/ui/src/workflow-canvas/nodes/tool-lib-node/details/index.vue b/ui/src/workflow-canvas/nodes/tool-lib-node/details/index.vue
index 2b8fe7c883c..53b7850ac10 100644
--- a/ui/src/workflow-canvas/nodes/tool-lib-node/details/index.vue
+++ b/ui/src/workflow-canvas/nodes/tool-lib-node/details/index.vue
@@ -29,7 +29,7 @@ defineProps<{
{{ t('execution.details.output') }}
- {{ data.result || '-' }}
+ {{ data.result == null || data.result === '' ? '-' : data.result }}