diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.ts index d70552935..e6f3498f8 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"); }