* 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

View file

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