traced back to innerWindow error (#320)

This commit is contained in:
moo-onthelawn 2024-02-21 19:17:33 -05:00 committed by GitHub
parent 859e7dde80
commit 56be9ba9cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,13 +57,15 @@ export const useChartLines = ({
useEffect(() => {
if (tvWidget && isChartReady) {
tvWidget.onChartReady(() => {
tvWidget.chart().dataReady(() => {
if (showOrderLines) {
drawOrderLines();
drawPositionLine();
} else {
deleteChartLines();
}
tvWidget.headerReady().then(() => {
tvWidget.chart().dataReady(() => {
if (showOrderLines) {
drawOrderLines();
drawPositionLine();
} else {
deleteChartLines();
}
});
});
});
}