Explorar el Código

fix: suppress node name conflict temporarily

Junyi Du hace 3 años
padre
commit
0c378a5916
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/main/frontend/extensions/graph/pixi.cljs

+ 3 - 1
src/main/frontend/extensions/graph/pixi.cljs

@@ -176,7 +176,9 @@
           links-js                                                                  (bean/->js links)]
       (let [simulation (layout! nodes-js links-js)]
         (doseq [node nodes-js]
-          (.addNode graph (.-id node) node))
+          (try (.addNode graph (.-id node) node)
+               (catch js/Error e
+                 (js/console.error e))))
         (doseq [link links-js]
           (let [source (.-id (.-source link))
                 target (.-id (.-target link))]