Selaa lähdekoodia

fix: use frontend.util.ref for 'Copy ref' like in the rest of the app, the old one rendered (()) instead of [[]], and also remove the requirement of the old namespace

matugong 5 päivää sitten
vanhempi
sitoutus
3ae0ab9f5d
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/main/frontend/components/cmdk/core.cljs

+ 2 - 2
src/main/frontend/components/cmdk/core.cljs

@@ -26,11 +26,11 @@
             [frontend.util :as util]
             [frontend.util.page :as page-util]
             [frontend.util.text :as text-util]
+            [frontend.util.ref :as ref]
             [goog.functions :as gfun]
             [goog.object :as gobj]
             [goog.userAgent]
             [logseq.common.util :as common-util]
-            [logseq.common.util.block-ref :as block-ref]
             [logseq.db :as ldb]
             [logseq.shui.hooks :as hooks]
             [logseq.shui.ui :as shui]
@@ -427,7 +427,7 @@
 
 (defn- copy-block-ref [state]
   (when-let [block-uuid (some-> state state->highlighted-item :source-block :block/uuid)]
-    (editor-handler/copy-block-ref! block-uuid block-ref/->block-ref)
+    (editor-handler/copy-block-ref! block-uuid ref/->block-ref)
     (shui/dialog-close! :ls-dialog-cmdk)))
 
 (defmulti handle-action (fn [action _state _event] action))