Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/12607 2

Vanessa09105163c9f6
diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.ts
index a9ef10d083..d5027e0707 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;