From cfadb05e3a2c59e7073522ac0454811221ac7f42 Mon Sep 17 00:00:00 2001 From: Alex de Mulder Date: Fri, 24 Jul 2015 13:05:01 +0200 Subject: [PATCH] bugfix --- dist/vis.js | 2 +- lib/network/modules/components/Node.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/vis.js b/dist/vis.js index 6cbcad4b..c8afdad8 100644 --- a/dist/vis.js +++ b/dist/vis.js @@ -27923,7 +27923,7 @@ return /******/ (function(modules) { // webpackBootstrap }, { key: 'updateShape', value: function updateShape(currentShape) { - if (currentShape === this.options.shape) { + if (currentShape === this.options.shape && this.shape) { this.shape.setOptions(this.options); } else { // clean up the shape if it is already made so the new shape can start clean. diff --git a/lib/network/modules/components/Node.js b/lib/network/modules/components/Node.js index 82a22da9..b05c9420 100644 --- a/lib/network/modules/components/Node.js +++ b/lib/network/modules/components/Node.js @@ -223,7 +223,7 @@ class Node { } updateShape(currentShape) { - if (currentShape === this.options.shape) { + if (currentShape === this.options.shape && this.shape) { this.shape.setOptions(this.options); } else {