From 912dfe024893ce099a334e273b7e8e014045ba55 Mon Sep 17 00:00:00 2001 From: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Date: Sun, 16 Mar 2025 12:59:23 +0000 Subject: [PATCH] Check type --- pyproject.toml | 2 +- web/js/betterCombos.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }