Skip to content

Commit

Permalink
Fix: 재활치료사 영상 목록 페이지에서 페이지가 0으로 지정되는 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
PortalCube committed Nov 6, 2023
1 parent 446ff8f commit d11ba88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/reducer/video-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d11ba88

Please sign in to comment.