Skip to content

Commit

Permalink
Remove hook cleanup now that elastic/eui#5068 is merged
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Aug 25, 2021
1 parent d3ce53e commit e40ebfa
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit e40ebfa

Please sign in to comment.