Skip to content

Commit 2fdf717

Browse files
authored
fix node attribute creation (#20)
1 parent 0dfd157 commit 2fdf717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graph-view-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ class GraphViewNode {
268268
let input;
269269
let nodeValue;
270270
if (nodeData.attributes) {
271-
if (nodeData.attributes[attribute.name]) {
271+
if (nodeData.attributes[attribute.name] !== undefined) {
272272
nodeValue = nodeData.attributes[attribute.name];
273273
} else {
274274
Object.keys(nodeData.attributes).forEach((k) => {

0 commit comments

Comments
 (0)