mirror of
https://github.com/logseq/logseq.git
synced 2026-05-25 05:04:24 +00:00
fix: block reference
This commit is contained in:
@@ -893,7 +893,7 @@
|
||||
(let [db-based? (config/db-based-graph? (state/get-current-repo))
|
||||
->ref (if db-based? page-ref/->page-ref block-ref/->block-ref)]
|
||||
[:span.warning.mr-1 {:title "Node ref invalid"}
|
||||
(->ref id)]))
|
||||
(->ref (str id))]))
|
||||
|
||||
(defn inline-text
|
||||
([format v]
|
||||
@@ -1327,11 +1327,11 @@
|
||||
:skip-refresh? true})]
|
||||
(set-block! block)))
|
||||
[])
|
||||
(if (and id (= (:block/uuid (:block config)) id))
|
||||
(if (and block-id (= (:block/uuid (:block config)) block-id))
|
||||
[:span.warning.text-sm "Self reference"]
|
||||
(if block
|
||||
(block-reference-aux config id label)
|
||||
(invalid-node-ref id)))))
|
||||
(block-reference-aux config block-id label)
|
||||
(invalid-node-ref block-id)))))
|
||||
|
||||
(defn- render-macro
|
||||
[config name arguments macro-content format]
|
||||
|
||||
Reference in New Issue
Block a user