-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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(explore): dnd multiple columns doesn't work #15781
Conversation
@kgabryje Should other places that use |
@@ -162,6 +162,7 @@ export const DndMetricSelect = (props: any) => { | |||
|
|||
const onNewMetric = (newMetric: Metric) => { | |||
const newValue = props.isMulti ? [...value, newMetric] : [newMetric]; | |||
props.isMulti || props.multi ? [...value, newMetric] : [newMetric]; |
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.
I don't think this line will do anything because the result is not being assigned to a variable.
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.
Yeah, mistake while formatting. Fixed now
Codecov Report
@@ Coverage Diff @@
## master #15781 +/- ##
=======================================
Coverage 77.07% 77.07%
=======================================
Files 983 983
Lines 51618 51618
Branches 6991 6991
=======================================
Hits 39785 39785
Misses 11608 11608
Partials 225 225
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@michael-s-molina I double checked and it seems that |
SUMMARY
Due to recent changes, drag and dropping metrics or columns in controls that accept multiple values did not work correctly - instead of adding a new value, the first was replaced. This PR fixes that behaviour.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
https://user-images.githubusercontent.com/15073128/126191515-85cca674-e237-4b60-97f9-6a383a61718e.mov
After:
https://user-images.githubusercontent.com/15073128/126191555-b43c723e-7c60-45f6-90c0-7a6e7c1b82ea.mov
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION
CC @junlincc