소스 검색

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

Vanessa 2 년 전
부모
커밋
8365db0517
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/src/protyle/breadcrumb/index.ts

+ 1 - 1
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");
         }