From fa549697bbdd2b27fd31a97deaf7cf06be2367e4 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Tue, 26 Nov 2019 11:48:13 +0100 Subject: [PATCH] Query Types are now zero-based in FTL. This removes the extra offset of 1 everywhere. Signed-off-by: DL6ER --- src/components/log/QueryLog.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/log/QueryLog.tsx b/src/components/log/QueryLog.tsx index 80afd56..a2ae825 100644 --- a/src/components/log/QueryLog.tsx +++ b/src/components/log/QueryLog.tsx @@ -135,8 +135,7 @@ class QueryLog extends Component { break; } - // Query Types start at 1 - filters.query_type = parseInt(filter.value) + 1; + filters.query_type = parseInt(filter.value); break; case "domain": if (filter.value.length === 0) { @@ -450,7 +449,7 @@ const columns = (t: i18next.TFunction) => [ { Header: t("Type"), id: "queryType", - accessor: (r: ApiQuery) => queryTypes[r.type - 1], + accessor: (r: ApiQuery) => queryTypes[r.type], width: 50, filterable: true, filterMethod: () => true, // Don't filter client side