mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-08-19 05:06:47 +02:00
Hide empty folders in embeddings search results (#1506)
This commit is contained in:
@@ -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('<br style="clear: both;">'), folders)
|
||||
return result
|
||||
|
Reference in New Issue
Block a user