From da331fea01b7d2bc15b7628366b03b9e3ba1a395 Mon Sep 17 00:00:00 2001 From: Roman Bazalevsky Date: Tue, 31 Dec 2019 17:44:36 +0300 Subject: [PATCH] =?utf8?q?=D0=9E=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BA?= =?utf8?q?=D0=B0=20=D0=BD=D0=B5=D0=BE=D0=BF=D1=80=D0=B5=D0=B4=D0=B5=D0=BB?= =?utf8?q?=D0=B5=D0=BD=D0=BD=D1=8B=D1=85=20=D0=B7=D0=BD=D0=B0=D1=87=D0=B5?= =?utf8?q?=D0=BD=D0=B8=D0=B9=20=D0=B2=20=D0=B2=D0=B5=D0=B1-=D0=B8=D0=BD?= =?utf8?q?=D1=82=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81=D0=B5.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- openwrt-web/meteo/meteo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwrt-web/meteo/meteo.js b/openwrt-web/meteo/meteo.js index 9060847..36ff690 100644 --- a/openwrt-web/meteo/meteo.js +++ b/openwrt-web/meteo/meteo.js @@ -25,7 +25,7 @@ function RefreshPageState() { for (var param in returnedData[sensor_id][sensor]) { sensor_path = sensor_id+"."+sensor+"."+param; name = properties["names"][sensor_path]; - if (! name.startsWith("-")) { + if ((! name.startsWith("-")) && (name != "undefined")) { value = returnedData[sensor_id][sensor][param]; if (! name) { name = sensor_path; } units = properties["units"][sensor_path]; -- 2.34.1