Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

fix: fixes metric control when changing viz type to tree chart #1116

Merged
merged 1 commit into from
May 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const dndGroupByControl: SharedControlConfig<'DndColumnSelect'> = {
options.unshift(TIME_COLUMN_OPTION);
}
newState.options = Object.fromEntries(options.map(option => [option.column_name, option]));
newState.savedMetrics = state.datasource.metrics || [];
}
return newState;
},
Expand Down