From 8365db05178c45dcaa14ff107a8030bf067060c6 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 26 Dec 2022 19:34:59 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E9=97=AA=E5=8D=A1=E9=9D=A2=E5=8C=85?= =?UTF-8?q?=E5=B1=91=E4=B8=8D=E8=83=BD=E6=98=BE=E7=A4=BA=E7=AD=94=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/protyle/breadcrumb/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }