From 7a9bc883df5750dbd9574345d1875cb552ec414f Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Wed, 27 Sep 2023 19:32:21 +0530 Subject: [PATCH] Fix error if a user doesn't have any LoRA models in the folder --- ui/plugins/ui/model-tools.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/plugins/ui/model-tools.plugin.js b/ui/plugins/ui/model-tools.plugin.js index 09fd6499..49187d53 100644 --- a/ui/plugins/ui/model-tools.plugin.js +++ b/ui/plugins/ui/model-tools.plugin.js @@ -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")