From 1bbc72fff09e63017d9d5066fdaa0105313acdc6 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Wed, 28 Sep 2016 22:36:53 -0400 Subject: [PATCH] was destroying and not reinitializing --- frontend/src/Metamaps/Visualize.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/Metamaps/Visualize.js b/frontend/src/Metamaps/Visualize.js index 3804b6a8..a70ae21c 100644 --- a/frontend/src/Metamaps/Visualize.js +++ b/frontend/src/Metamaps/Visualize.js @@ -118,7 +118,7 @@ const Visualize = { render: function () { var self = Visualize, RGraphSettings, FDSettings - if (self.type == 'RGraph' && (!self.mGraph || self.mGraph instanceof $jit.ForceDirected)) { + if (self.type == 'RGraph') { // clear the previous canvas from #infovis $('#infovis').empty() @@ -133,7 +133,7 @@ const Visualize = { RGraphSettings.levelDistance = JIT.RGraph.levelDistance self.mGraph = new $jit.RGraph(RGraphSettings) - } else if (self.type == 'ForceDirected' && (!self.mGraph || self.mGraph instanceof $jit.RGraph)) { + } else if (self.type == 'ForceDirected') { // clear the previous canvas from #infovis $('#infovis').empty()