From c11ff7751659b03b9b1442e5f41d41f7b3ccd85f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E9=9B=AA=E5=B3=B0?= Date: Thu, 22 Aug 2024 18:48:57 +0800 Subject: [PATCH] fix: The problem of displaying multiple values for nodes starting with 'Show' --- static/js/custom_node.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/custom_node.js b/static/js/custom_node.js index a42c09e..a2dc41d 100644 --- a/static/js/custom_node.js +++ b/static/js/custom_node.js @@ -249,7 +249,10 @@ app.registerExtension({ const onExecuted = nodeType.prototype.onExecuted; nodeType.prototype.onExecuted = function (texts) { onExecuted?.apply(this, arguments); - let show = texts[k] + let show = [] + for (let k in texts) { + show = texts[k] + } outSet.call(this, show); }; /*const onConfigure = nodeType.prototype.onConfigure;