diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 4abacdfc..6db36ee8 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -2762,6 +2762,12 @@ function updateEmbeddingsList(filter = "") { } } }) + + if (toplevel.children.length == 0 && folders.children.length == 0) { + // Empty folder + return "" + } + let result = document.createElement("div") result.replaceChildren(toplevel, htmlToElement('
'), folders) return result