Skip to content

Commit 5487b77

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontend/components/dashboard/chart/DashboardChartSummary.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,10 @@ 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+
? datapoint * 100
214+
: null)
212215
213216
const newObj: SeriesOption = {
214217
connectNulls: false,

0 commit comments

Comments
 (0)