Skip to content

Commit e40ebfa

Browse files
committed
Remove hook cleanup now that elastic/eui#5068 is merged
1 parent d3ce53e commit e40ebfa

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

  • x-pack/plugins/lens/public/datatable_visualization/components

x-pack/plugins/lens/public/datatable_visualization/components/cell_value.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,6 @@ export const createGridCell = (
5353
}
5454
}
5555
}
56-
// make sure to clean it up when something change
57-
// this avoids cell's styling to stick forever
58-
return () => {
59-
if (minMaxByColumnId?.[originalId]) {
60-
setCellProps({
61-
style: {
62-
backgroundColor: undefined,
63-
color: undefined,
64-
},
65-
});
66-
}
67-
};
6856
}, [rowValue, columnId, setCellProps, colorMode, palette, minMaxByColumnId, getColorForValue]);
6957

7058
return (

0 commit comments

Comments
 (0)