diff --git a/packages/app-desktop/gui/NoteEditor/utils/useDropHandler.ts b/packages/app-desktop/gui/NoteEditor/utils/useDropHandler.ts index bb5fccf91..c23725188 100644 --- a/packages/app-desktop/gui/NoteEditor/utils/useDropHandler.ts +++ b/packages/app-desktop/gui/NoteEditor/utils/useDropHandler.ts @@ -9,6 +9,8 @@ export default function useDropHandler(dependencies: HookDependencies) { const { editorRef } = dependencies; return useCallback(async (event: any) => { + if (!event.dataTransfer) return; + const dt = event.dataTransfer; const createFileURL = event.altKey;