From e848a9dfb7bd0624f1b907efecab6578403fb9f2 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Thu, 5 Sep 2024 00:08:29 +0900 Subject: [PATCH] fix: potential null-deref on impact-wildcard.js https://github.com/ltdrdata/ComfyUI-Impact-Pack/issues/731 --- js/impact-wildcard.js | 4 ++-- modules/impact/config.py | 2 +- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/impact-wildcard.js b/js/impact-wildcard.js index 18157e9..28fd8a7 100644 --- a/js/impact-wildcard.js +++ b/js/impact-wildcard.js @@ -6,11 +6,11 @@ let refresh_btn2 = document.querySelector('button[title="Refresh widgets in node let orig = refresh_btn.onclick; -refresh_btn.onclick = function() { +refresh_btn?.onclick = function() { orig(); api.fetchApi('/impact/wildcards/refresh'); }; -refresh_btn2.addEventListener('click', function() { +refresh_btn2?.addEventListener('click', function() { api.fetchApi('/impact/wildcards/refresh'); }); \ No newline at end of file diff --git a/modules/impact/config.py b/modules/impact/config.py index 0943ba0..e870f73 100644 --- a/modules/impact/config.py +++ b/modules/impact/config.py @@ -1,7 +1,7 @@ import configparser import os -version_code = [7, 4, 3] +version_code = [7, 4, 4] version = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') dependency_version = 22 diff --git a/pyproject.toml b/pyproject.toml index 02d80ac..263ba7d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-impact-pack" description = "This extension offers various detector nodes and detailer nodes that allow you to configure a workflow that automatically enhances facial details. And provide iterative upscaler." -version = "7.4.3" +version = "7.4.4" license = { file = "LICENSE.txt" } dependencies = ["segment-anything", "scikit-image", "piexif", "transformers", "opencv-python-headless", "GitPython", "scipy>=1.11.4"]