mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-21 06:22:59 +00:00
[client] Bugfix: Select reading type defs correctly
This commit is contained in:
parent
fc3723a924
commit
1449c22783
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ class DeviceReadingDisplay {
|
|||
if(new_data_obj.data == null) return false;
|
||||
|
||||
// Update the colour & suggested min/max values
|
||||
let def = this.reading_type_defs[this.reading_type.id],
|
||||
let def = this.reading_type_defs[this.reading_type.short_descr],
|
||||
y_axis = this.chart.options.scales.yAxes[0];
|
||||
if(typeof def !== "undefined") {
|
||||
new_data_obj.borderColor = def.borderColor;
|
||||
|
|
Loading…
Reference in a new issue