Fix never-ending warn about not implementing IReactiveAtom

This commit is contained in:
Oliver Hine 2016-07-22 19:44:05 +01:00
parent 16585b2722
commit 5daafa7db4
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@
(let [query-id (first-in-vector v)
handler-fn (get @qid->fn query-id)]
(when ^boolean js/goog.DEBUG
(when-let [not-reactive (remove #(implements? reagent.ratom/IReactiveAtom %) dynv)]
(when-let [not-reactive (not-empty (remove #(implements? reagent.ratom/IReactiveAtom %) dynv))]
(console :warn "re-frame: your subscription's dynamic parameters that don't implement IReactiveAtom: " not-reactive)))
(if (nil? handler-fn)
(console :error "re-frame: no subscription handler registered for: \"" query-id "\". Returning a nil subscription.")