diff --git a/src/Qt5/imports/FluentUI/Controls/FluChart.qml b/src/Qt5/imports/FluentUI/Controls/FluChart.qml index 4b1f77ab..f47bd20d 100644 --- a/src/Qt5/imports/FluentUI/Controls/FluChart.qml +++ b/src/Qt5/imports/FluentUI/Controls/FluChart.qml @@ -15,7 +15,7 @@ Canvas { function animateToNewData() { chartAnimationProgress = 0.1; - d.jsChart.update(); + d.jsChart?.update(); chartAnimator.restart(); } QtObject{ diff --git a/src/Qt6/imports/FluentUI/Controls/FluChart.qml b/src/Qt6/imports/FluentUI/Controls/FluChart.qml index ebc70b15..30af5ab3 100644 --- a/src/Qt6/imports/FluentUI/Controls/FluChart.qml +++ b/src/Qt6/imports/FluentUI/Controls/FluChart.qml @@ -14,7 +14,7 @@ Canvas { function animateToNewData() { chartAnimationProgress = 0.1; - d.jsChart.update(); + d.jsChart?.update(); chartAnimator.restart(); } QtObject{