mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-26 04:18:26 +02:00
Remove trailing coma in promptMatrix when activeTags is empty
This commit is contained in:
parent
8cb408bc6e
commit
5ba1ae9ae4
@ -878,7 +878,10 @@ function getPrompts() {
|
|||||||
promptsToMake = promptsToMake.concat(promptPermutations)
|
promptsToMake = promptsToMake.concat(promptPermutations)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const promptTags = (activeTags.length > 0 ? activeTags.map(x => x.name).join(", ") : "")
|
if (activeTags.length <= 0) {
|
||||||
|
return promptsToMake
|
||||||
|
}
|
||||||
|
const promptTags = activeTags.map(x => x.name).join(", ")
|
||||||
return promptsToMake.map((prompt) => `${prompt}, ${promptTags}`)
|
return promptsToMake.map((prompt) => `${prompt}, ${promptTags}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user