Fix error if a user doesn't have any LoRA models in the folder

This commit is contained in:
cmdr2 2023-09-27 19:32:21 +05:30
parent a33908b6de
commit 7a9bc883df

View File

@ -618,7 +618,7 @@
imagePlaceholder: undefined,
init() {
LoraUI.modelField = new ModelDropdown(document.querySelector("#loraModel"), "lora")
LoraUI.modelField = new ModelDropdown(document.querySelector("#loraModel"), "lora", "None")
LoraUI.keywordsField = document.querySelector("#lora-manager-keywords")
LoraUI.notesField = document.querySelector("#lora-manager-notes")
LoraUI.civitaiImportBtn = document.querySelector("#lora-keyword-from-civitai")