diff --git a/web/scripts/app.js b/web/scripts/app.js index 1c382eeb4..b3e88d46f 100644 --- a/web/scripts/app.js +++ b/web/scripts/app.js @@ -185,7 +185,10 @@ export class ComfyApp { } if(ComfyApp.clipspace.images != undefined) { - filename = `${ComfyApp.clipspace.images[0].filename} [${ComfyApp.clipspace.images[0].type}]`; + const clip_image = ComfyApp.clipspace.images[0]; + if(clip_image.subfolder != '') + filename = `${clip_image.subfolder}/`; + filename += `${clip_image.filename} [${clip_image.type}]`; } else if(ComfyApp.clipspace.widgets != undefined) { const index_in_clip = ComfyApp.clipspace.widgets.findIndex(obj => obj.name === 'image');