Merge pull request #3189 from weaveworks/fix-defaults-in-the-ui

Fixes sending the default topologyOptions to the /api
This commit is contained in:
Simon
2018-05-28 15:57:19 +02:00
committed by GitHub

View File

@@ -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);