This commit is contained in:
Vanessa 2022-10-19 21:47:47 +08:00
parent f1bdb4dcfd
commit 82eafca96d
10 changed files with 14 additions and 14 deletions

View file

@ -74,7 +74,7 @@ export class Tree {
if (item.count) {
countHTML = `<span class="counter">${item.count}</span>`;
}
const hasChild = (item.children && item.children.length > 0) || (item.blocks && item.blocks.length > 0)
const hasChild = (item.children && item.children.length > 0) || (item.blocks && item.blocks.length > 0);
html += `<li class="b3-list-item"
${(item.nodeType !== "NodeDocument" && item.type === "backlink") ? 'draggable="true"' : ""}
${item.id ? 'data-node-id="' + item.id + '"' : ""}