mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 09:26:28 +00:00
fix: whiteboard not working because of properties
This commit is contained in:
@@ -7,7 +7,8 @@
|
||||
[logseq.db.property :as db-property]
|
||||
[logseq.graph-parser.util :as gp-util]
|
||||
[frontend.db :as db]
|
||||
[clojure.set :as set]))
|
||||
[clojure.set :as set]
|
||||
[frontend.util :as util]))
|
||||
|
||||
(defn lookup
|
||||
"Get the value of coll's (a map) `key`"
|
||||
@@ -31,6 +32,14 @@
|
||||
[uuid]
|
||||
(:block/original-name (db/entity [:block/uuid uuid])))
|
||||
|
||||
(defn get-pid
|
||||
"Get a property's UUID given its name or key"
|
||||
[property-name]
|
||||
(let [repo (state/get-current-repo)]
|
||||
(if (config/db-based-graph? repo)
|
||||
(:block/uuid (db/entity [:block/name (util/page-name-sanity-lc (name property-name))]))
|
||||
property-name)))
|
||||
|
||||
(defn block->shape [block]
|
||||
(get-property block :logseq.tldraw.shape))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user