Replaced usages of defaultState by initialState

This commit is contained in:
Alejandro Celaya
2019-03-17 10:11:20 +01:00
parent 5bb9d15e27
commit 232c059e4f
8 changed files with 21 additions and 21 deletions

View File

@@ -6,7 +6,7 @@ export const SELECT_SERVER = 'shlink/selectedServer/SELECT_SERVER';
export const RESET_SELECTED_SERVER = 'shlink/selectedServer/RESET_SELECTED_SERVER';
/* eslint-enable padding-line-between-statements */
const defaultState = null;
const initialState = null;
export const resetSelectedServer = createAction(RESET_SELECTED_SERVER);
@@ -22,6 +22,6 @@ export const selectServer = (serversService) => (serverId) => (dispatch) => {
};
export default handleActions({
[RESET_SELECTED_SERVER]: () => defaultState,
[RESET_SELECTED_SERVER]: () => initialState,
[SELECT_SERVER]: (state, { selectedServer }) => selectedServer,
}, defaultState);
}, initialState);