Merge pull request #568 from gaetandezeiraud/fluchart-avoid-error

Update FluChart.qml
This commit is contained in:
zhuzichu 2024-11-17 15:10:44 +08:00 committed by GitHub
commit 3647197d3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ Canvas {
function animateToNewData() function animateToNewData()
{ {
chartAnimationProgress = 0.1; chartAnimationProgress = 0.1;
d.jsChart.update(); d.jsChart?.update();
chartAnimator.restart(); chartAnimator.restart();
} }
QtObject{ QtObject{

View File

@ -14,7 +14,7 @@ Canvas {
function animateToNewData() function animateToNewData()
{ {
chartAnimationProgress = 0.1; chartAnimationProgress = 0.1;
d.jsChart.update(); d.jsChart?.update();
chartAnimator.restart(); chartAnimator.restart();
} }
QtObject{ QtObject{