Skip to content

Commit

Permalink
fix(ui): page crash for table filter with keyword item
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhp915 committed Nov 14, 2024
1 parent 000c988 commit 4798e2d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/frontend/components/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@
(db-property/property-value-content (db/entity [:block/uuid entity]))
(de/entity? entity)
(db-property/property-value-content entity)
(keyword? entity)
(str entity)
:else
entity)))

Expand Down Expand Up @@ -514,8 +516,8 @@
(map (fn [e]
(let [label (get-property-value-content e)
label' (if (and block-type? (= label "class")) "tag" label)]
{:label label' :value e}))
values)
{:label (str label') :value e}))
values)
(sort-by :label))))

(defn datetime-property?
Expand Down

0 comments on commit 4798e2d

Please sign in to comment.