File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -621,7 +621,7 @@ class LineView extends ChartView {
621621 _endLabel : graphic . Text ;
622622
623623 _polyline : ECPolyline ;
624- _polygon : ECPolygon ;
624+ _polygon ? : ECPolygon ;
625625
626626 _stackedOnPoints : ArrayLike < number > ;
627627 _points : ArrayLike < number > ;
@@ -927,13 +927,10 @@ class LineView extends ChartView {
927927 const shouldTriggerAreaEvent = triggerLineEvent === true || triggerEvent === true || triggerEvent === 'area' ;
928928
929929 this . packEventData ( seriesModel , polyline , shouldTriggerLineEvent ) ;
930- this . packEventData ( seriesModel , polygon , shouldTriggerAreaEvent ) ;
930+ polygon && this . packEventData ( seriesModel , polygon , shouldTriggerAreaEvent ) ;
931931 }
932932
933933 private packEventData ( seriesModel : LineSeriesModel , el : Element , enable : boolean ) {
934- if ( ! el ) {
935- return ;
936- }
937934 getECData ( el ) . eventData = enable ? {
938935 componentType : 'series' ,
939936 componentSubType : 'line' ,
You can’t perform that action at this time.
0 commit comments