omcljs / om

ClojureScript interface to Facebook's React
6.65k stars 362 forks source link

`query-template` broken for idents/links as join keys #777

Closed anmonteiro closed 8 years ago

anmonteiro commented 8 years ago
cljs.user> (om/query-template
             '[{[:app/current-user 2] [:some/key]}]
             '[[:app/current-user 2]])
#object[TypeError TypeError: Cannot read property 'call' of null]
   clojure.zip/node (jar:file:/Users/anmonteiro/.m2/repository/org/clojure/clojurescript/1.9.227/clojurescript-1.9.227-aot.jar!/clojure/zip.cljs:62:10)
   om$next$query_template_$_query_template_STAR_ (file:/Users/anmonteiro/Documents/github/om/src/main/om/next.cljc:587:27)
   om$next$query_template (file:/Users/anmonteiro/Documents/github/om/src/main/om/next.cljc:609:6)
nil
anmonteiro commented 8 years ago

fixed 21f8ceda3f20a5463c4bb1794a77785104b9d0b1