Merge branch 'beta' of github.com:cmdr2/stable-diffusion-ui into beta

This commit is contained in:
cmdr2 2023-08-17 15:29:16 +05:30
commit 95004be0e9

View File

@ -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