Browse Source

component builder - fix initial displayed node name

pull/337/head
Dr.Lt.Data 10 months ago
parent
commit
4649d216b1
  1. 5
      js/components-manager.js

5
js/components-manager.js

@ -594,7 +594,10 @@ export class ComponentBuilderDialog extends ComfyDialog {
createNodeLabel() { createNodeLabel() {
let label = $el('p'); let label = $el('p');
label.className = 'cb-node-label'; label.className = 'cb-node-label';
label.textContent = " _::" + this.target_node.comfyClass.substring(9); if(this.target_node.comfyClass.includes('::'))
label.textContent = this.target_node.comfyClass.substring(9);
else
label.textContent = " _::" + this.target_node.comfyClass.substring(9);
return label; return label;
} }

Loading…
Cancel
Save