Skip to content

Commit

Permalink
Merge pull request #3189 from weaveworks/fix-defaults-in-the-ui
Browse files Browse the repository at this point in the history
Fixes sending the default topologyOptions to the /api
  • Loading branch information
foot authored May 28, 2018
2 parents 4647ce1 + 1353eb5 commit 9d63432
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/app/scripts/reducers/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,8 @@ export function rootReducer(state = initialState, action) {
pinnedMetricType: action.state.pinnedMetricType,
});
if (action.state.topologyOptions) {
state = state.set('topologyOptions', fromJS(action.state.topologyOptions));
const options = getDefaultTopologyOptions(state).mergeDeep(action.state.topologyOptions);
state = state.set('topologyOptions', options);
}
if (action.state.topologyViewMode) {
state = state.set('topologyViewMode', action.state.topologyViewMode);
Expand Down

0 comments on commit 9d63432

Please sign in to comment.