mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
improve selection via deconstructor
This commit is contained in:
parent
f3f6e4e68b
commit
f9a1d37d63
|
@ -392,6 +392,7 @@ const TradingViewChart = (props) => {
|
|||
chart.current.timeScale().fitContent();
|
||||
return () => {
|
||||
chart.current.remove();
|
||||
setData(null);
|
||||
};
|
||||
}, [props.runID, currentInterval, data])
|
||||
|
||||
|
@ -421,8 +422,6 @@ const TradingViewChart = (props) => {
|
|||
{intervals.map((interval) => {
|
||||
return <Button size="xs" key={interval} onPress={(e) => {
|
||||
setCurrentInterval(interval)
|
||||
setData(null);
|
||||
setMarkers(null);
|
||||
}}>
|
||||
{interval}
|
||||
</Button>
|
||||
|
|
Loading…
Reference in New Issue
Block a user