default text property incase we need one.

This commit is contained in:
jwd-dev 2023-04-15 19:58:46 -04:00
parent 9587ea90c8
commit fb61c75e39

View File

@ -12,9 +12,10 @@ app.registerExtension({
constructor() { constructor() {
if (!this.properties) { if (!this.properties) {
this.properties = {}; this.properties = {};
this.properties.text="";
} }
ComfyWidgets.STRING(this, "", ["", {multiline: true}], app) ComfyWidgets.STRING(this, "", ["", {default:this.properties.text, multiline: true}], app)
// This node is purely frontend and does not impact the resulting prompt so should not be serialized // This node is purely frontend and does not impact the resulting prompt so should not be serialized
this.isVirtualNode = true; this.isVirtualNode = true;
} }