From d24a7a5c5ec045976d0a9bc4525f9f9aa226979e Mon Sep 17 00:00:00 2001 From: patriceac <48073125+patriceac@users.noreply.github.com> Date: Tue, 10 Jan 2023 19:00:19 -0800 Subject: [PATCH] Fix the restoring of the last selected model --- ui/media/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 78797d65..e515787b 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -1313,7 +1313,7 @@ async function getModels() { modelOption.value = path + modelName modelOption.innerHTML = modelName !== '' ? (path != "" ? "  "+modelName : modelName) : 'None' - if (modelName === selectedModel) { + if (path + modelName === selectedModel) { modelOption.selected = true } modelField.appendChild(modelOption)