-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(overlay plot): legend updates correctly when removing element via remove action #7531
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7531 +/- ##
==========================================
+ Coverage 55.22% 55.25% +0.03%
==========================================
Files 672 672
Lines 26969 26965 -4
Branches 2622 2622
==========================================
+ Hits 14893 14900 +7
+ Misses 11356 11344 -12
- Partials 720 721 +1
... and 3 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
@@ -165,7 +165,6 @@ export default { | |||
this.registerListeners(this.config); | |||
} | |||
this.listenTo(this.config.legend, 'change:expandByDefault', this.changeExpandDefault, this); | |||
this.initialize(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove duplicate code
if (seriesIndexToRemove === -1) { | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't remove a seriesModel if we don't find one in the list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haha, that ... makes sense
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😎
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Tested it out as well, working flawlessly.
Closes #7530
Closes #7527
Describe your changes:
All Submissions:
Author Checklist
type:
label? Note: this is not necessarily the same as the original issue.Reviewer Checklist