This is an automated email from the ASF dual-hosted git repository.
ovilia pushed a commit to branch fix-endLabel
in repository https://gitbox.apache.org/repos/asf/echarts.git
The following commit(s) were added to refs/heads/fix-endLabel by this push:
new 1d10ba89e fix(endLabel): remove check of inner
1d10ba89e is described below
commit 1d10ba89eb7fe59a50053572ebe61f409cdbce38
Author: Ovilia <[email protected]>
AuthorDate: Wed Jul 5 09:51:51 2023 +0800
fix(endLabel): remove check of inner
---
src/chart/line/LineView.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/chart/line/LineView.ts b/src/chart/line/LineView.ts
index 8c07a3d93..435fa2a90 100644
--- a/src/chart/line/LineView.ts
+++ b/src/chart/line/LineView.ts
@@ -1300,7 +1300,7 @@ class LineView extends ChartView {
}
if (valueAnimation) {
const inner = labelInner(endLabel);
- if (inner && typeof inner.setLabelText === 'function') {
+ if (typeof inner.setLabelText === 'function') {
inner.setLabelText(value);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]