Update main.js

Fix parsing of Set and Permute operators in custom tags.
This commit is contained in:
patriceac 2022-10-30 00:26:53 -07:00 committed by GitHub
parent d492d3f738
commit f08a875cd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -887,8 +887,8 @@ function getPrompts() {
prompts = prompts.filter(prompt => prompt !== '')
if (activeTags.length > 0) {
const promptTags = activeTags.map(x => x.name).join(", ")
prompts = prompts.map((prompt) => `${prompt}, ${promptTags}`)
const promptTags = activeTags.map(x => x.name).join(", ")
prompts = prompts.map((prompt) => `${prompt}, ${promptTags}`)
}
let promptsToMake = applySetOperator(prompts)