From fb61c75e392ae0a3813955d56fb5aceecacff2e4 Mon Sep 17 00:00:00 2001 From: jwd-dev Date: Sat, 15 Apr 2023 19:58:46 -0400 Subject: [PATCH] default text property incase we need one. --- web/extensions/core/noteNode.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/extensions/core/noteNode.js b/web/extensions/core/noteNode.js index 12428773c..1412d4373 100644 --- a/web/extensions/core/noteNode.js +++ b/web/extensions/core/noteNode.js @@ -12,9 +12,10 @@ app.registerExtension({ constructor() { if (!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.isVirtualNode = true; }