                        graph (:graph (r/props comp))
                        vis-data (get-vis-graph graph @types)]
                    (.setSize net (aget dom-rect "width") (aget dom-rect "height"))
-                   (.setData net (clj->js vis-data))
-                   (.fit net)))]
+                   (.setData net (clj->js vis-data))))]
 
     (r/create-class
       {:reagent-render (fn []

                                    node (adjust-pos e node)]
                                (if (:value e)
                                  (assoc node :borderWidth 5
                                              :borderWidthSelected 5)
                                  node)))))

        process-nodes (->> (:processes graph)

                                    new-network (js/vis.Network. node)]
                                (init-vis new-network)
                                (reset! network new-network)
                                (render comp new-network)
                                (.fit new-network)))

       :component-did-update #(render % @network)})))

