code-review-fix task 12.8: add candles to useImperativeHandle dependency array in CandleChart
This commit is contained in:
parent
2d8222740c
commit
a55cbab84f
1 changed files with 1 additions and 1 deletions
|
|
@ -233,7 +233,7 @@ const CandleChart = forwardRef<CandleChartHandle, CandleChartProps>(
|
||||||
if (typeof from !== 'number' || typeof to !== 'number') return candles;
|
if (typeof from !== 'number' || typeof to !== 'number') return candles;
|
||||||
return candles.filter((c) => c.time >= from && c.time <= to);
|
return candles.filter((c) => c.time >= from && c.time <= to);
|
||||||
},
|
},
|
||||||
}));
|
}), [candles]);
|
||||||
|
|
||||||
// Get theme-specific colors
|
// Get theme-specific colors
|
||||||
const getChartColors = () => {
|
const getChartColors = () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue