Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
search working
  • Loading branch information
andrew committed May 9, 2016
1 parent e6b085b commit 4e925a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cljs/ulysses/utils.cljs
Expand Up @@ -109,6 +109,8 @@

(defn filter-grant-ops
[grant-ops filters]
(let [{:keys [search mechanisms]} filters]
(let [{:keys [search mechanisms]} filters
search-lower (string/lower-case search)]
(->> grant-ops
(filter #(get-in mechanisms [(-> % :funding-mechanism :name keyword)])))))
(filter #(get mechanisms (-> % :funding-mechanism :name keyword)))
(filter #(-> % :company string/lower-case (string/includes? search-lower))))))

0 comments on commit 4e925a5

Please sign in to comment.