Skip to content

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

:bug: https://github.com/siyuan-note/siyuan/issues/14269

Vanessa8a9a8e454806
diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts
index 0a48075e59..30a942b1e6 100644
--- a/app/src/protyle/util/paste.ts
+++ b/app/src/protyle/util/paste.ts
@@ -254,7 +254,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
files = event.dataTransfer.items;
}
} else {
- if (event.localFiles.length > 0) {
+ if (event.localFiles?.length > 0) {
readLocalFile(protyle, event.localFiles);
return;
}