Remove hook cleanup now that elastic/eui#5068 is merged

This commit is contained in:
Constance Chen 2021-08-24 12:45:28 -07:00
parent d3ce53ea9a
commit e40ebfa929

View file

@ -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 (