mirror of
https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git
synced 2026-02-28 10:54:11 +00:00
Fix keyword name check for single element dicts
(important for user defined mappings with a unique hash)
This commit is contained in:
@@ -452,9 +452,9 @@ async function insertTextAtCursor(textArea, result, tagword, tabCompletedWithout
|
||||
let name = result.text + ".safetensors";
|
||||
|
||||
if (nameDict) {
|
||||
if (nameDict.size > 1)
|
||||
if (nameDict.has(name))
|
||||
keywords = nameDict.get(name);
|
||||
else
|
||||
else
|
||||
keywords = nameDict.get("none");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user