From e40ebfa92946662d401e169cfdfb97c664f92e92 Mon Sep 17 00:00:00 2001 From: Constance Chen Date: Tue, 24 Aug 2021 12:45:28 -0700 Subject: [PATCH] Remove hook cleanup now that elastic/eui#5068 is merged --- .../components/cell_value.tsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/x-pack/plugins/lens/public/datatable_visualization/components/cell_value.tsx b/x-pack/plugins/lens/public/datatable_visualization/components/cell_value.tsx index 6d6b2e4b1013..9c99bb7257e0 100644 --- a/x-pack/plugins/lens/public/datatable_visualization/components/cell_value.tsx +++ b/x-pack/plugins/lens/public/datatable_visualization/components/cell_value.tsx @@ -53,18 +53,6 @@ export const createGridCell = ( } } } - // make sure to clean it up when something change - // this avoids cell's styling to stick forever - return () => { - if (minMaxByColumnId?.[originalId]) { - setCellProps({ - style: { - backgroundColor: undefined, - color: undefined, - }, - }); - } - }; }, [rowValue, columnId, setCellProps, colorMode, palette, minMaxByColumnId, getColorForValue]); return (