Fix changing layout

master
Rohan Vazarkar 2018-08-10 13:13:54 -04:00
parent 4380bd2273
commit 0ab3f2a5f9
2 changed files with 3 additions and 0 deletions

View File

@ -277,7 +277,9 @@ export default class GraphContainer extends Component {
relayout() {
closeTooltip();
this.clearScale();
sigma.layouts.stopForceLink();
if (appStore.dagre) {
sigma.layouts.dagre.start(this.state.sigmaInstance);
} else {

View File

@ -312,6 +312,7 @@ if (!existsSync(imagepath)){
global.closeTooltip = function(){
if (appStore.currentTooltip !== null){
appStore.currentTooltip.close();
appStore.currentTooltip = null;
}
}