From 3ae0ab9f5de325c9aab1cce837fe7eccd960c874 Mon Sep 17 00:00:00 2001 From: matugong Date: Thu, 29 Jan 2026 15:43:47 -0300 Subject: [PATCH] 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 --- src/main/frontend/components/cmdk/core.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/frontend/components/cmdk/core.cljs b/src/main/frontend/components/cmdk/core.cljs index cded61c685..b81bb49c59 100644 --- a/src/main/frontend/components/cmdk/core.cljs +++ b/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))