From 1449c227835b778ea34eb089c23a71c2d8899ec4 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 20 Feb 2019 18:51:45 +0000 Subject: [PATCH] [client] Bugfix: Select reading type defs correctly --- client_src/js/DeviceReadingDisplay.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_src/js/DeviceReadingDisplay.mjs b/client_src/js/DeviceReadingDisplay.mjs index 732f402..4a0e4c3 100644 --- a/client_src/js/DeviceReadingDisplay.mjs +++ b/client_src/js/DeviceReadingDisplay.mjs @@ -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;