traced back to innerWindow error

This commit is contained in:
mulan xia 2024-02-21 17:16:03 -05:00
parent fc5d8538fe
commit 4d1113002e
No known key found for this signature in database
GPG Key ID: C6CE526613568D73

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();
}
});
});
});
}