mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 13:38:06 +01:00
This commit is contained in:
parent
d8b4f18294
commit
ddf3fc32cf
2 changed files with 11 additions and 11 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue