浏览代码

fix: catch clause

Peng Xiao 3 年之前
父节点
当前提交
d9abfac89f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
           }
         }