From d84435ef6237a04fd17f1f0bb0ec828c367a687f Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Wed, 3 Jul 2024 00:02:54 +0900 Subject: [PATCH] fix: potential ui bug --- __init__.py | 2 +- js/image_util.js | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/__init__.py b/__init__.py index 0281d82..29a70b0 100644 --- a/__init__.py +++ b/__init__.py @@ -7,7 +7,7 @@ import importlib -version_code = [0, 80, 4] +version_code = [0, 80, 5] version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') print(f"### Loading: ComfyUI-Inspire-Pack ({version_str})") diff --git a/js/image_util.js b/js/image_util.js index 4b856ac..9730dc6 100644 --- a/js/image_util.js +++ b/js/image_util.js @@ -44,7 +44,7 @@ app.registerExtension({ Object.defineProperty(node, 'imgs', { set(v) { - if (!v[0].complete) { + if (v && !v[0].complete) { let orig_onload = v[0].onload; v[0].onload = function(v2) { if(orig_onload) diff --git a/pyproject.toml b/pyproject.toml index 3cf5fbe..41f7866 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-inspire-pack" description = "This extension provides various nodes to support Lora Block Weight and the Impact Pack. Provides many easily applicable regional features and applications for Variation Seed." -version = "0.80.4" +version = "0.80.5" license = "LICENSE" dependencies = ["matplotlib", "cachetools"]