fix: whiteboard e2e tests

This commit is contained in:
Tienson Qin
2023-10-18 10:34:15 +08:00
parent c7c438b85a
commit 336cdfbfc5
2 changed files with 28 additions and 26 deletions

View File

@@ -23,7 +23,7 @@
(defn get-property
"Get the value of block's property `key`"
[block key]
(let [block (db/entity (:db/id block))]
(let [block (or (db/entity (:db/id block)) block)]
(when-let [properties (:block/properties block)]
(lookup properties key))))