From ab257ed7507b8f533a686751f6772173608ce919 Mon Sep 17 00:00:00 2001 From: johnqiao Date: Fri, 24 Nov 2023 21:56:14 -0700 Subject: [PATCH] Clear `this.uploadedImages` when opening the dialog --- js/comfyui-share-openart.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/comfyui-share-openart.js b/js/comfyui-share-openart.js index c7b3cc29..39c398fe 100644 --- a/js/comfyui-share-openart.js +++ b/js/comfyui-share-openart.js @@ -548,6 +548,7 @@ export class OpenArtShareDialog extends ComfyDialog { this.previewImage.style.display = "none"; const key = await this.readKey(); this.keyInput.value = key; + this.uploadedImages = []; // If `selectedNodeId` is provided, we will select the corresponding radio // button for the node. In addition, we move the selected radio button to