mirror of
https://github.com/Physton/sd-webui-prompt-all-in-one.git
synced 2026-01-26 19:29:56 +00:00
#243 fix bug
This commit is contained in:
@@ -290,15 +290,16 @@ export default {
|
||||
let indexes = []
|
||||
for (let index in this.tags) {
|
||||
let tag = this.tags[index]
|
||||
if (typeof tag['type'] === 'string' && tag.type === 'wrap') continue
|
||||
let find = false
|
||||
if (tag.isLora) {
|
||||
find = tag.loraName === name || tag.loraName === output_name
|
||||
find = tag.loraName === name || (output_name && tag.loraName === output_name)
|
||||
} else if (tag.isLyco) {
|
||||
find = tag.lycoName === name || tag.lycoName === output_name
|
||||
find = tag.lycoName === name || (output_name && tag.lycoName === output_name)
|
||||
} else if (tag.isEmbedding) {
|
||||
find = tag.embeddingName === name || tag.embeddingName === output_name
|
||||
find = tag.embeddingName === name || (output_name && tag.embeddingName === output_name)
|
||||
} else {
|
||||
find = tag.originalValue === name || tag.originalValue === output_name
|
||||
find = tag.originalValue === name || (output_name && tag.originalValue === output_name)
|
||||
}
|
||||
if (find) {
|
||||
indexes.push(index)
|
||||
|
||||
Reference in New Issue
Block a user