From 09105163c9f6e9b06790cce93867111af35c5e74 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 26 Sep 2024 23:22:52 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/12607 2 --- app/src/layout/dock/Files.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.ts index a9ef10d08..d5027e070 100644 --- a/app/src/layout/dock/Files.ts +++ b/app/src/layout/dock/Files.ts @@ -427,7 +427,9 @@ export class Files extends Model { // https://github.com/siyuan-note/siyuan/issues/11587 if (index === 0) { const airaLabelElement = item.querySelector(".ariaLabel"); - showTooltip(airaLabelElement.getAttribute("aria-label"), airaLabelElement); + if (airaLabelElement) { + showTooltip(airaLabelElement.getAttribute("aria-label"), airaLabelElement); + } } }); window.siyuan.dragElement = undefined;