Fix query table settings failing on click and enhance dev commands

to display properties as named maps
This commit is contained in:
Gabriel Horner
2023-08-22 11:53:53 -04:00
parent 7edfa533d4
commit 2327fa3103
3 changed files with 12 additions and 3 deletions

View File

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