Configured redux dev tools

This commit is contained in:
Alejandro Celaya
2018-08-05 08:13:12 +02:00
parent 3c0f1716aa
commit 9575107848
3 changed files with 9 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ const LIST_SHORT_URLS_ERROR = 'shlink/shortUrlsList/LIST_SHORT_URLS_ERROR';
export const LIST_SHORT_URLS = 'shlink/shortUrlsList/LIST_SHORT_URLS';
const initialState = {
shortUrls: [],
shortUrls: {},
loading: true,
};

View File

@@ -2,7 +2,7 @@ import { LIST_SHORT_URLS } from './shortUrlsList';
const RESET_SHORT_URL_PARAMS = 'shlink/shortUrlsListParams/RESET_SHORT_URL_PARAMS';
const defaultState = { page: 1 };
const defaultState = { page: '1' };
export default function reducer(state = defaultState, action) {
switch (action.type) {