Skip to content

Commit

Permalink
fix(explore): JS error for creating new metrics from columns (apache#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmud authored and Emmanuel Bavoux committed Nov 14, 2021
1 parent 12bd94d commit 6df5485
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,7 @@ export const DndMetricSelect = (props: any) => {

const onNewMetric = useCallback(
(newMetric: Metric) => {
const newValue = props.multi
? [...value, newMetric.metric_name]
: [newMetric.metric_name];
const newValue = props.multi ? [...value, newMetric] : [newMetric];
setValue(newValue);
handleChange(newValue);
},
Expand Down

0 comments on commit 6df5485

Please sign in to comment.