fix: fetch the image type only if there's a possibility of a video type.
This commit is contained in:
@@ -249,8 +249,9 @@ export class ModelInfoDialog extends ComfyDialog {
|
||||
})
|
||||
);
|
||||
|
||||
if (info.images?.length) {
|
||||
this.img.src = info.images[0].url;
|
||||
const preview = info.images.find((i) => i.type === "image");
|
||||
if (preview) {
|
||||
this.img.src = preview.url;
|
||||
this.img.style.display = "";
|
||||
|
||||
this.imgSave = $el("button", {
|
||||
|
||||
Reference in New Issue
Block a user