Browse Source

[client] Bugfix: Select reading type defs correctly

pull/26/head
Starbeamrainbowlabs 4 years ago
parent
commit
1449c22783
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 2
      client_src/js/DeviceReadingDisplay.mjs

2
client_src/js/DeviceReadingDisplay.mjs

@ -249,7 +249,7 @@ class DeviceReadingDisplay { @@ -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…
Cancel
Save