fix: don't copy block-ref if block-id is nil

This commit is contained in:
rcmerci
2021-04-30 16:58:55 +08:00
parent 9dafbecc83
commit 31f8638128

View File

@@ -2406,7 +2406,7 @@
(defn- copy-current-block-ref
[]
(when-let [current-block (state/get-edit-block)]
(let [block-id (:block/uuid current-block)]
(when-let [block-id (:block/uuid current-block)]
(copy-block-ref! block-id #(str "((" % "))"))
(notification/show!
[:div