You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/07/26 07:18:52 UTC

[GitHub] KidneyFlower closed pull request #7924: Fix #7855

KidneyFlower closed pull request #7924: Fix #7855
URL: https://github.com/apache/incubator-echarts/pull/7924
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/component/tooltip/TooltipView.js b/src/component/tooltip/TooltipView.js
index eaa661bbb..df801d443 100644
--- a/src/component/tooltip/TooltipView.js
+++ b/src/component/tooltip/TooltipView.js
@@ -417,6 +417,10 @@ export default echarts.extendComponentView({
         var seriesIndex = el.seriesIndex;
         var seriesModel = ecModel.getSeriesByIndex(seriesIndex);
 
+        if (!el.dataModel && !seriesModel) {
+            return;
+        }
+
         // For example, graph link.
         var dataModel = el.dataModel || seriesModel;
         var dataIndex = el.dataIndex;


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org