luci-app-statistics: df.js: fix null access in configSummary()
authorJo-Philipp Wich <jo@mein.io>
Fri, 21 Feb 2020 07:49:05 +0000 (08:49 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 21 Feb 2020 07:57:29 +0000 (08:57 +0100)
Fixes: #3657
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/df.js

index fafe4afe16f53f7c41ac5e73d12cf0fc30829c91..2d317d38fb2771ed9619248675a17777b678f1eb 100644 (file)
@@ -95,7 +95,7 @@ return L.Class.extend({
                var devs = L.toArray(section.Devices),
                    mounts = L.toArray(section.MountPoints),
                    fstypes = L.toArray(section.FSTypes),
-                   count = devs.length + mounts.length + count.length,
+                   count = devs.length + mounts.length + fstypes.length,
                    invert = section.IgnoreSelected == '1';
 
                if (count == 0)