mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-08-02 09:01:52 +00:00
Replaced usages of defaultState by initialState
This commit is contained in:
@@ -10,11 +10,11 @@ export const shortUrlsListParamsType = PropTypes.shape({
|
||||
searchTerm: PropTypes.string,
|
||||
});
|
||||
|
||||
const defaultState = { page: '1' };
|
||||
const initialState = { page: '1' };
|
||||
|
||||
export default handleActions({
|
||||
[LIST_SHORT_URLS]: (state, { params }) => ({ ...state, ...params }),
|
||||
[RESET_SHORT_URL_PARAMS]: () => defaultState,
|
||||
}, defaultState);
|
||||
[RESET_SHORT_URL_PARAMS]: () => initialState,
|
||||
}, initialState);
|
||||
|
||||
export const resetShortUrlParams = createAction(RESET_SHORT_URL_PARAMS);
|
||||
|
||||
Reference in New Issue
Block a user