mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-23 08:43:42 +01: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)
|
||||
}
|
||||
})
|
||||
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}`)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user