Skip to content

Commit

Permalink
Fixes sending the default topologyOptions to the /api
Browse files Browse the repository at this point in the history
- Which fails sometimes as we overwrite them whatever we find in the
  url state. Url state is not complete anymore so this doesn't work
  • Loading branch information
foot committed May 24, 2018
1 parent ca3dacd commit a424a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/app/scripts/reducers/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ export function rootReducer(state = initialState, action) {
pinnedMetricType: action.state.pinnedMetricType,
});
if (action.state.topologyOptions) {
state = state.set('topologyOptions', fromJS(action.state.topologyOptions));
state = state.mergeDeep(fromJS({ topologyOptions: action.state.topologyOptions }));
}
if (action.state.topologyViewMode) {
state = state.set('topologyViewMode', action.state.topologyViewMode);
Expand Down

0 comments on commit a424a5a

Please sign in to comment.