From 8a9a8e454806797949b5bd1f4ffa1448cfabc105 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 1 Sep 2025 11:10:16 +0800 Subject: [PATCH] :bug: https://github.com/siyuan-note/siyuan/issues/14269 --- app/src/protyle/util/paste.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts index 0a48075e5..30a942b1e 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; }