Check type
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "comfyui-custom-scripts"
|
||||
description = "Enhancements & experiments for ComfyUI, mostly focusing on UI features"
|
||||
version = "1.2.2"
|
||||
version = "1.2.3"
|
||||
license = { file = "LICENSE" }
|
||||
|
||||
[project.urls]
|
||||
|
||||
@@ -470,7 +470,7 @@ app.registerExtension({
|
||||
let prev = undefined;
|
||||
modelWidget.callback = function () {
|
||||
let ret = modelCb?.apply(this, arguments) ?? modelWidget.value;
|
||||
if ("content" in ret) {
|
||||
if (typeof ret === "object" && "content" in ret) {
|
||||
ret = ret.content;
|
||||
modelWidget.value = ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user