Update sdppp-custom.js

This commit is contained in:
杨必赞
2025-02-08 09:50:28 +08:00
committed by GitHub
parent d15a5bb633
commit dbb976ca8d
+2 -2
View File
@@ -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;
}
}