From 6dab31d7fbd101816e38bf698479e6bf25b09965 Mon Sep 17 00:00:00 2001 From: Aleksandra Sikora Date: Mon, 3 Aug 2020 18:42:58 +0200 Subject: [PATCH] lint --- .../FrequentlyUsedColumnSelector.tsx | 38 +++++++++---------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/console/src/components/Services/Data/Common/Components/FrequentlyUsedColumnSelector.tsx b/console/src/components/Services/Data/Common/Components/FrequentlyUsedColumnSelector.tsx index 95942527c49..c716529a60c 100644 --- a/console/src/components/Services/Data/Common/Components/FrequentlyUsedColumnSelector.tsx +++ b/console/src/components/Services/Data/Common/Components/FrequentlyUsedColumnSelector.tsx @@ -123,32 +123,30 @@ const FrequentlyUsedColumnSelector = ({ action = null, dispatch = null, }: FrequentlyUsedColumnSelectorProps) => { - const frequentlyUsedColumnsOptions = () => { - return frequentlyUsedColumns - .filter(fuc => !action || fuc.validFor.includes(action)) - .map(fuc => { - const { title, subTitle } = getFreqUsedColDisplayInfo(fuc); - return { - content: ( + const frequentlyUsedColumnsOptions = frequentlyUsedColumns + .filter(fuc => !action || fuc.validFor.includes(action)) + .map(fuc => { + const { title, subTitle } = getFreqUsedColDisplayInfo(fuc); + return { + content: ( +
-
- {title} -
-
{subTitle}
+ {title}
- ), - onClick: () => (dispatch ? dispatch(onSelect(fuc)) : onSelect(fuc)), - }; - }); - }; +
{subTitle}
+
+ ), + onClick: () => (dispatch ? dispatch(onSelect(fuc)) : onSelect(fuc)), + }; + }); return (