We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ce7a21d + d165cce commit c08207cCopy full SHA for c08207c
src/chart/graph/util/RecordUtils.ts
@@ -69,9 +69,10 @@ function extractGraphEntitiesFromField(
69
source: value.start.low,
70
target: value.end.low,
71
type: value.type,
72
- width: !Number.isNaN(value.properties[relWidthProperty])
73
- ? toNumber(value.properties[relWidthProperty])
74
- : defaultRelWidth,
+ width:
+ value.properties[relWidthProperty] !== undefined && !Number.isNaN(value.properties[relWidthProperty])
+ ? toNumber(value.properties[relWidthProperty])
75
+ : defaultRelWidth,
76
color: value.properties[relColorProperty] ? value.properties[relColorProperty] : defaultRelColor,
77
properties: value.properties,
78
});
0 commit comments