* client: fixed getDefaultAddresses structure

This commit is contained in:
Ildar Kamalov 2019-04-22 12:25:40 +03:00 committed by Simon Zolin
parent 33db419384
commit 5f88abb322
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ const install = handleActions({
[actions.getDefaultAddressesFailure]: state => ({ ...state, processingDefault: false }), [actions.getDefaultAddressesFailure]: state => ({ ...state, processingDefault: false }),
[actions.getDefaultAddressesSuccess]: (state, { payload }) => { [actions.getDefaultAddressesSuccess]: (state, { payload }) => {
const { interfaces } = payload; const { interfaces } = payload;
const web = { ...state.web, ...payload.web }; const web = { ...state.web, port: payload.web_port };
const dns = { ...state.dns, ...payload.dns }; const dns = { ...state.dns, port: payload.dns_port };
const newState = { const newState = {
...state, web, dns, interfaces, processingDefault: false, ...state, web, dns, interfaces, processingDefault: false,