Vanessa 2024-02-05 22:03:43 +08:00
parent d8b4f18294
commit ddf3fc32cf
2 changed files with 11 additions and 11 deletions

View file

@ -494,7 +494,7 @@ const getLeaf = (liElement: HTMLElement, flashcard: boolean) => {
path: liElement.getAttribute("data-path"),
flashcard,
}, response => {
if (response.data.path === "/" && response.data.files.length === 0) {
if (response.data.files.length === 0) {
showMessage(window.siyuan.languages.emptyContent);
return;
}