Browse Source

fix: distinct-by: convert col to seq first

rcmerci 3 years ago
parent
commit
fa0a03263d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/main/frontend/util.cljc

+ 3 - 1
src/main/frontend/util.cljc

@@ -474,7 +474,9 @@
 
 
 
 
 #?(:cljs
 #?(:cljs
-   (def distinct-by medley/distinct-by))
+   (defn distinct-by
+     [f col]
+     (medley/distinct-by f (seq col))))
 
 
 #?(:cljs
 #?(:cljs
    (defn distinct-by-last-wins
    (defn distinct-by-last-wins