Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

fix: JS exception: Cannot read property 'dispatch' of undefined #287

Merged
merged 1 commit into from
Dec 5, 2019

Conversation

graceguo-supercat
Copy link

@graceguo-supercat graceguo-supercat commented Dec 4, 2019

🐛 Bug Fix

Sometimes chart took longer time to render, and annotation layer is rendered before chart is ready. In this case, when the annotation layer tried to attach event handler for brush events, it will cause JS exception because chart.focus object is not created:
Screen Shot 2019-12-04 at 2 58 57 PM

This error will make chart section blank, and cannot apply annotation at all.

@graceguo-supercat graceguo-supercat requested a review from a team as a code owner December 4, 2019 23:01
@ghost
Copy link

ghost commented Dec 4, 2019

There were the following issues with this Pull Request

  • Commit: 97efe38
    • ✖ message may not be empty
    • ✖ type may not be empty

You may need to change the commit messages to comply with the repository contributing guidelines.


🤖 This comment was generated by commitlint[bot]. Please report issues here.

Happy coding!

@graceguo-supercat graceguo-supercat changed the title [annotation] Fix JS exception: Cannot read property 'dispatch' of undefined fix: JS exception: Cannot read property 'dispatch' of undefined Dec 4, 2019
@netlify
Copy link

netlify bot commented Dec 4, 2019

Deploy preview for superset-ui-plugins ready!

Built with commit 97efe38

https://deploy-preview-287--superset-ui-plugins.netlify.com

@netlify
Copy link

netlify bot commented Dec 4, 2019

Deploy preview for superset-ui-plugins ready!

Built with commit dc187fc

https://deploy-preview-287--superset-ui-plugins.netlify.com

@netlify
Copy link

netlify bot commented Dec 4, 2019

Deploy preview for superset-ui-plugins ready!

Built with commit a11d757

https://deploy-preview-287--superset-ui-plugins.netlify.com

@codecov
Copy link

codecov bot commented Dec 4, 2019

Codecov Report

Merging #287 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #287   +/-   ##
======================================
  Coverage    36.9%   36.9%           
======================================
  Files          12      12           
  Lines         233     233           
  Branches       24      24           
======================================
  Hits           86      86           
  Misses        135     135           
  Partials       12      12

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bbf7895...a11d757. Read the comment docs.

Copy link
Contributor

@etr2460 etr2460 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

@etr2460 etr2460 merged commit faebd10 into master Dec 5, 2019
@delete-merged-branch delete-merged-branch bot deleted the gg-FixAnnotationJSError branch December 5, 2019 00:01
nytai pushed a commit to preset-io/superset-ui-plugins that referenced this pull request Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants