From e3a7e4669ef7eeeeb8f402bcd91bf8bcbabbedcb Mon Sep 17 00:00:00 2001 From: Dries De Peuter Date: Tue, 17 Jan 2023 21:59:42 +0100 Subject: [PATCH] feat(chart): Add Location filter --- ui/src/scenes/chart/index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/src/scenes/chart/index.tsx b/ui/src/scenes/chart/index.tsx index 0487461..e07269b 100644 --- a/ui/src/scenes/chart/index.tsx +++ b/ui/src/scenes/chart/index.tsx @@ -72,6 +72,12 @@ const Chart = () => { (format[key][item.application.name] ? format[key][item.application.name] : 0) + 1); + + item.location && + (format[key][item.location.name] = + (format[key][item.location.name] + ? format[key][item.location.name] + : 0) + 1); }); // Ensure dates are in order