Skip to content

Commit

Permalink
fix node attribute creation (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellthompson authored Nov 9, 2021
1 parent 0dfd157 commit 2fdf717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graph-view-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ class GraphViewNode {
let input;
let nodeValue;
if (nodeData.attributes) {
if (nodeData.attributes[attribute.name]) {
if (nodeData.attributes[attribute.name] !== undefined) {
nodeValue = nodeData.attributes[attribute.name];
} else {
Object.keys(nodeData.attributes).forEach((k) => {
Expand Down

0 comments on commit 2fdf717

Please sign in to comment.