From d08280b709b6cd3ce0c0d4fc9b0846b402b0cb72 Mon Sep 17 00:00:00 2001 From: sylenien Date: Thu, 19 May 2022 13:15:36 +0200 Subject: [PATCH] fix(ui): fix text size --- .../Dashboard/components/WidgetWrapper/WidgetWrapper.tsx | 2 +- .../app/components/shared/Filters/FilterModal/FilterModal.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/Dashboard/components/WidgetWrapper/WidgetWrapper.tsx b/frontend/app/components/Dashboard/components/WidgetWrapper/WidgetWrapper.tsx index 385dbfc39..31a56fda3 100644 --- a/frontend/app/components/Dashboard/components/WidgetWrapper/WidgetWrapper.tsx +++ b/frontend/app/components/Dashboard/components/WidgetWrapper/WidgetWrapper.tsx @@ -95,7 +95,7 @@ function WidgetWrapper(props: Props) {
{isPredefined ? 'Cannot drill down system provided metrics' : 'Click to drill down'}
diff --git a/frontend/app/components/shared/Filters/FilterModal/FilterModal.tsx b/frontend/app/components/shared/Filters/FilterModal/FilterModal.tsx index b59aae664..c5b88c388 100644 --- a/frontend/app/components/shared/Filters/FilterModal/FilterModal.tsx +++ b/frontend/app/components/shared/Filters/FilterModal/FilterModal.tsx @@ -8,6 +8,7 @@ import { filtersMap } from 'Types/filter/newFilter'; export const getMatchingEntries = (searchQuery: string, filters: Record) => { const matchingCategories: string[] = []; const matchingFilters: Record = {}; + if (searchQuery.length === 0) return { matchingCategories: Object.keys(filters), matchingFilters: filters,