Skip to content

Commit

Permalink
fix(explore): JS error for creating new metrics from columns
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmud committed Aug 26, 2021
1 parent ee2eccd commit d121296
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 d121296

Please sign in to comment.