Skip to content

Commit

Permalink
fix(endLabel): endLabel fail with null data #18839
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovilia committed Jul 5, 2023
1 parent 9fa6220 commit a8ceb5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/chart/line/LineView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,10 @@ class LineView extends ChartView {
});
}
if (valueAnimation) {
labelInner(endLabel).setLabelText(value);
const inner = labelInner(endLabel);
if (inner && typeof inner.setLabelText === 'function') {
inner.setLabelText(value);
}
}
}
}
Expand Down

0 comments on commit a8ceb5b

Please sign in to comment.