From 2f218e1c88739e2ce35f84b39132c56edc38d9a3 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 20 Feb 2019 17:44:02 +0000 Subject: [PATCH] Bugfix: Update client UI to support new DB structure changes --- client_src/js/UI.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_src/js/UI.mjs b/client_src/js/UI.mjs index b722274..d9e25e1 100644 --- a/client_src/js/UI.mjs +++ b/client_src/js/UI.mjs @@ -61,7 +61,7 @@ class UI { }) } ]); - this.ui_panel.setIndex("Reading Type", this.reading_types.findIndex((type) => type.id == "PM25")); + this.ui_panel.setIndex("Reading Type", this.reading_types.findIndex((type) => type.short_descr == "PM25")); } }