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)