mirror of
https://github.com/weaveworks/scope.git
synced 2026-02-14 18:09:59 +00:00
Merge pull request #3189 from weaveworks/fix-defaults-in-the-ui
Fixes sending the default topologyOptions to the /api
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user