Remove hook cleanup now that elastic/eui#5068 is merged
This commit is contained in:
parent
d3ce53ea9a
commit
e40ebfa929
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue