mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 03:16:37 +00:00
Use catch :default for default error handling in cljs
This is considered normal practice for cljs. See https://clojure.atlassian.net/browse/CLJS-661 for when it was introduced and background on it
This commit is contained in:
committed by
Tienson Qin
parent
ae114afbd8
commit
2ce6dfad41
@@ -24,7 +24,7 @@
|
||||
(doseq [block-id (block-ref/get-all-block-ref-ids content)]
|
||||
(when-let [block (try
|
||||
(model/get-block-by-uuid block-id)
|
||||
(catch js/Error _e
|
||||
(catch :default _e
|
||||
nil))]
|
||||
(let [id-property (:id (:block/properties block))]
|
||||
(when-not (= (str id-property) (str block-id))
|
||||
|
||||
Reference in New Issue
Block a user