From c16f91ccb9d28689f9c4fb2b2c35911a6c60fd2a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 21 Feb 2020 08:49:05 +0100 Subject: luci-app-statistics: df.js: fix null access in configSummary() Fixes: #3657 Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/view/statistics/plugins/df.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-app-statistics/htdocs/luci-static/resources/view') diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/df.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/df.js index fafe4afe16..2d317d38fb 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/df.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/df.js @@ -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) -- cgit v1.2.3