Update ui_mixlab.js

This commit is contained in:
shadowcz007
2024-08-29 18:01:32 +08:00
parent 9aecc2cb08
commit e97641372a
+6 -2
View File
@@ -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(