Quellcode durchsuchen

fix: pasting logseq shape issue

Peng Xiao vor 3 Jahren
Ursprung
Commit
f42b3c20f0
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      tldraw/apps/tldraw-logseq/src/hooks/usePaste.ts

+ 1 - 1
tldraw/apps/tldraw-logseq/src/hooks/usePaste.ts

@@ -241,7 +241,7 @@ export function usePaste(context: LogseqContextValue) {
         return false
       }
 
-      if (files) {
+      if (files && files.length > 0) {
         await handleFiles(files)
       } else {
         for (const item of await navigator.clipboard.read()) {