fix incorrect way of checking for the prefix portion of the event type
This commit is contained in:
parent
719b84daf3
commit
3993415171
|
@ -1,9 +1,7 @@
|
||||||
(ns reagent-data-views.utils
|
(ns reagent-data-views.utils)
|
||||||
(:require
|
|
||||||
[clojure.string :as string]))
|
|
||||||
|
|
||||||
(defn relevant-event?
|
(defn relevant-event?
|
||||||
[data]
|
[data]
|
||||||
(and (vector? data)
|
(and (vector? data)
|
||||||
(keyword? (first data))
|
(keyword? (first data))
|
||||||
(string/starts-with? (name (first data)) "views/")))
|
(= (namespace (first data)) "views")))
|
||||||
|
|
Loading…
Reference in a new issue