Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 闪卡面包屑不能显示答案

Vanessa8365db05178c
diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.ts
index d70552935d..e6f3498f82 100644
--- a/app/src/protyle/breadcrumb/index.ts
+++ b/app/src/protyle/breadcrumb/index.ts
@@ -390,7 +390,7 @@ export class Breadcrumb {
}
this.id = id;
const excludeTypes: string[] = []
- if (this.element.parentElement.classList.contains("b3-dialog__cardblock")) {
+ if (this.element.parentElement?.parentElement && this.element.parentElement.parentElement.classList.contains("b3-dialog__cardblock")) {
// 闪卡面包屑不能显示答案
excludeTypes.push("NodeTextMark-mark");
}