diff --git a/pyproject.toml b/pyproject.toml index 73ad4b3..06e3103 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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] diff --git a/web/js/betterCombos.js b/web/js/betterCombos.js index b786264..cbf0a07 100644 --- a/web/js/betterCombos.js +++ b/web/js/betterCombos.js @@ -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; }