Explorar o código

fix: catch clause

Peng Xiao %!s(int64=3) %!d(string=hai) anos
pai
achega
d9abfac89f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tldraw/apps/tldraw-logseq/src/hooks/usePaste.ts

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

@@ -78,7 +78,7 @@ export function usePaste(context: LogseqContextValue) {
             }
             imageAssetsToCreate.push(asset)
             return true
-          } finally {
+          } catch {
             return false
           }
         }