subfolder fix on paste logic

attach subfolder if subfolder isn't empty
This commit is contained in:
ltdrdata 2023-04-23 23:32:48 +09:00
parent 8af0b2b52e
commit b2abfa6ad7

View File

@ -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');