🎨 The backlink panel no longer displays breadcrumbs of the first-level blocks https://github.com/siyuan-note/siyuan/issues/12862

This commit is contained in:
Daniel 2024-10-21 10:59:00 +08:00
parent 8b63066430
commit b1e7908b19
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 10 additions and 4 deletions

View file

@ -100,6 +100,10 @@ export const getBacklinkHeadingMore = (moreElement: HTMLElement) => {
};
export const genBreadcrumb = (blockPaths: IBreadcrumb[], renderFirst = false) => {
if (1 > blockPaths.length) {
return "";
}
let html = "";
blockPaths.forEach((item, index) => {
if (index === 0 && !renderFirst) {