From 084e9b4cdb367cd8fe11ce22ab305e2eb4f152e8 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sat, 14 Oct 2023 19:27:33 +0900 Subject: [PATCH] fix: LoadImage (Inspire) crash when refresh --- __init__.py | 2 +- js/image_util.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index 568a01a..ac6dbf7 100644 --- a/__init__.py +++ b/__init__.py @@ -7,7 +7,7 @@ import importlib -print(f"### Loading: ComfyUI-Inspire-Pack (V0.28.2)") +print(f"### Loading: ComfyUI-Inspire-Pack (V0.28.3)") node_list = [ "lora_block_weight", diff --git a/js/image_util.js b/js/image_util.js index 18473f5..193b4df 100644 --- a/js/image_util.js +++ b/js/image_util.js @@ -46,7 +46,7 @@ app.registerExtension({ get() { if(this._img == undefined && w.value != '') { this._img = [new Image()]; - if(w.value != '[IMAGE DATA]') + if(w.value && w.value != '[IMAGE DATA]') this._img[0].src = w.value; }