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

This commit is contained in:
matugong
2026-01-29 15:43:47 -03:00
committed by Tienson Qin
parent 7554e4e3f9
commit 3ae0ab9f5d

View File

@@ -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))