From e97641372a1663a9f7fdb0aee8274adf57762011 Mon Sep 17 00:00:00 2001 From: shadowcz007 Date: Thu, 29 Aug 2024 18:01:32 +0800 Subject: [PATCH] Update ui_mixlab.js --- web/javascript/ui_mixlab.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web/javascript/ui_mixlab.js b/web/javascript/ui_mixlab.js index 3bfe377..aff861c 100644 --- a/web/javascript/ui_mixlab.js +++ b/web/javascript/ui_mixlab.js @@ -1342,7 +1342,9 @@ app.registerExtension({ LGraphCanvas.prototype.text2text = async function (node) { let widget = node.widgets.filter( - w => w.name === 'text' && typeof w.value == 'string' + w => + (w.name === 'text' || w.name === 'prompt') && + typeof w.value == 'string' )[0] if (widget) { app.canvas.centerOnNode(node) @@ -1653,7 +1655,9 @@ app.registerExtension({ if (node.widgets) { let text_widget = node.widgets.filter( - w => w.name === 'text' && typeof w.value == 'string' + w => + (w.name === 'text' || w.name === 'prompt') && + typeof w.value == 'string' ) let text_input = node.inputs?.filter(