                                                     ))}]
                            [:span {:className "value"
                                    :onClick (fn []
-                                              (add-input! path true)
+                                              (when path
+                                                (add-input! path true))
                                               )}
                             (str x)])
                           ))


(defn re-run [notebook page args]
  (when (and notebook page)
    (reset! run-stack #js {:calls #js [(nth (run-index (:index @aurora-state) notebook page args) 2)]})
    (queue-render)))

(defn find-id [thing id]
  (first (filter #(= (aget % "id") id) (aget thing "calls"))))

                       :data data}
                      opts)))

(defn call
  ([ref args] (call ref args {}))
  ([ref args opts] (merge {:type :call
                           :ref ref
                           :args args}
                      opts)))

(defn ref-id [id]
  {:type :ref/id
   :id id})

(defn ref-js [js]
  {:type :ref/js
   :js js})

;;*********************************************************
;; Aurora state (mutation!)
;;*********************************************************
