diff --git a/src/clj/com/rpl/specter.cljc b/src/clj/com/rpl/specter.cljc index 205c802..5a41d9d 100644 --- a/src/clj/com/rpl/specter.cljc +++ b/src/clj/com/rpl/specter.cljc @@ -32,10 +32,15 @@ (defn wrap-dynamic-nav [f] (fn [& args] (let [ret (apply f args)] - (if (and (sequential? ret) (static-path? ret)) - (i/comp-paths* ret) - ret - )))) + (cond (and (sequential? ret) (static-path? ret)) + (i/comp-paths* ret) + + (and (sequential? ret) (= 1 (count ret))) + (first ret) + + :else + ret + )))) #?(:clj (do