* client: fixed getDefaultAddresses structure
This commit is contained in:
parent
33db419384
commit
5f88abb322
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue