Skip to content

Commit 0b52a0b

Browse files
committed
chore(vis-network): reutrn if data is either null or undefined
1 parent fa1b3c3 commit 0b52a0b

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/odd-impalas-heal.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@nodesecure/vis-network": patch
3+
---
4+
5+
Return (stop) processing if data is either null or undefined

workspaces/vis-network/src/dataset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default class NodeSecureDataSet extends EventTarget {
7474
this.FLAGS = FLAGS;
7575
this.data = data;
7676

77-
if (data === null) {
77+
if (data === null || data === undefined) {
7878
return;
7979
}
8080

0 commit comments

Comments
 (0)