From dbb976ca8d5baab4e4d099336b0779abd0bd9019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=BF=85=E8=B5=9E?= Date: Sat, 8 Feb 2025 09:50:28 +0800 Subject: [PATCH] Update sdppp-custom.js --- javascript/sdppp-custom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/sdppp-custom.js b/javascript/sdppp-custom.js index e94855b..bcdb34e 100644 --- a/javascript/sdppp-custom.js +++ b/javascript/sdppp-custom.js @@ -117,7 +117,7 @@ export default function(sdppp) { title: node.title, widgets: node.widgets.map((widget) => ({ value: widget.value, - name: '', + name: node.type.indexOf('Group') != -1 ? (widget.label || widget.name) : '',, outputType: widget.type || "toggle", options: widget.options })) @@ -163,4 +163,4 @@ export default function(sdppp) { */ function nameByConnectedOutputOrTitle(node) { return node.outputs?.[0].widget?.name || node.title; -} \ No newline at end of file +}