Skip to content

Commit b401f38

Browse files
committed
fix(DashboardChartSummary): use null for nullable values
See: BEDS-1548
1 parent e04bdc3 commit b401f38

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

frontend/components/dashboard/chart/DashboardChartSummary.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,11 @@ const loadData = async () => {
208208
name = getGroupLabel($t, element.id, groups.value, allGroups)
209209
}
210210
211-
const data = element.data.map(datapoint => datapoint !== undefined ? datapoint * 100 : undefined)
211+
const data = element.data.map(datapoint =>
212+
(datapoint === null || datapoint === undefined)
213+
? null
214+
: datapoint * 100,
215+
)
212216
213217
const newObj: SeriesOption = {
214218
connectNulls: false,

0 commit comments

Comments
 (0)