Skip to content

Commit

Permalink
Fix crash with non-vector :group values
Browse files Browse the repository at this point in the history
  • Loading branch information
kimo-k committed Jan 17, 2024
1 parent a1e47c1 commit fd2a032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/re_com/tree_select.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@

(def filter-descendants* (memoize filter-descendants))

(defn sort-items [items] (->> items (sort-by (juxt (comp #(apply str %) :group)
(defn sort-items [items] (->> items (sort-by (juxt (comp #(apply str (as-v %)) :group)
(complement group?)))))

(def group-label (comp str/capitalize name last :group))
Expand Down

0 comments on commit fd2a032

Please sign in to comment.