mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 23:25:05 +00:00
Fix query table settings failing on click and enhance dev commands
to display properties as named maps
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
(ns frontend.handler.property.util
|
||||
(:require [frontend.config :as config]
|
||||
[frontend.state :as state]
|
||||
[frontend.config :as config]
|
||||
[logseq.graph-parser.property :as gp-property]
|
||||
[logseq.graph-parser.util :as gp-util]
|
||||
[frontend.db :as db]
|
||||
@@ -25,6 +24,11 @@
|
||||
(when-let [properties (:block/properties block)]
|
||||
(lookup properties key))))
|
||||
|
||||
(defn get-property-name
|
||||
"Get a property's name given its uuid"
|
||||
[uuid]
|
||||
(:block/original-name (db/entity [:block/uuid uuid])))
|
||||
|
||||
(defn block->shape [block]
|
||||
(get-property block :logseq.tldraw.shape))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user