mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-27 13:49:08 +08:00
Update FluChart.qml
In some cases, not sure why but animateToNewData is called and jsChart is undefined so it generate an error. Adding a "?" operator avoid the issue if jsChart is not ready, no error and can be called later.
This commit is contained in:
parent
d82e0ed529
commit
8f5fbb4053
@ -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{
|
||||||
|
@ -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{
|
||||||
|
Loading…
Reference in New Issue
Block a user