diff --git a/src/reducer/video-list.js b/src/reducer/video-list.js index e4c1816..2c5d92c 100644 --- a/src/reducer/video-list.js +++ b/src/reducer/video-list.js @@ -21,13 +21,13 @@ export function videoListReducer(state, action) { case "page": return { ...state, - page: action.payload, + page: action.payload || 1, }; case "data": return { ...state, - list: action.payload.dtoList, - page: action.payload.page, + list: action.payload.dtoList || [], + page: action.payload.page || 1, totalPage: action.payload.end, }; default: