mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-06 06:48:21 +00:00
Fixes incorrect marker color for charts (#2180)
This commit is contained in:
parent
ce0254215e
commit
2c70a98e94
1 changed files with 5 additions and 2 deletions
|
|
@ -111,8 +111,11 @@ export const Chart = function Chart({ width, height, darkMode, properties, style
|
|||
return newData;
|
||||
};
|
||||
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
const memoizedChartData = useMemo(() => computeChartData(data, dataString), [data, dataString, chartType]);
|
||||
const memoizedChartData = useMemo(
|
||||
() => computeChartData(data, dataString),
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
[data, dataString, chartType, markerColor]
|
||||
);
|
||||
|
||||
return (
|
||||
<div data-disabled={disabledState} style={computedStyles}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue