mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 09:26:28 +00:00
fix: can't delete selected blocks in queries
This commit is contained in:
@@ -1073,7 +1073,10 @@
|
||||
;; remove embeds, references and queries
|
||||
(let [dom-blocks (remove (fn [block]
|
||||
(or (= "true" (dom/attr block "data-transclude"))
|
||||
(= "true" (dom/attr block "data-query")))) blocks)]
|
||||
(= "true" (dom/attr block "data-query")))) blocks)
|
||||
dom-blocks (if (seq dom-blocks) dom-blocks
|
||||
(remove (fn [block]
|
||||
(or (= "true" (dom/attr block "data-transclude")))) blocks))]
|
||||
(when (seq dom-blocks)
|
||||
(let [repo (state/get-current-repo)
|
||||
block-uuids (distinct (map #(uuid (dom/attr % "blockid")) dom-blocks))
|
||||
|
||||
Reference in New Issue
Block a user