From d11ba88f3f240cbdeb8ae2a0eb27f2b009b90ae7 Mon Sep 17 00:00:00 2001 From: PortalCube <35104213+PortalCube@users.noreply.github.com> Date: Mon, 6 Nov 2023 14:36:25 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EC=9E=AC=ED=99=9C=EC=B9=98=EB=A3=8C?= =?UTF-8?q?=EC=82=AC=20=EC=98=81=EC=83=81=20=EB=AA=A9=EB=A1=9D=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=EC=97=90=EC=84=9C=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=EA=B0=80=200=EC=9C=BC=EB=A1=9C=20=EC=A7=80=EC=A0=95?= =?UTF-8?q?=EB=90=98=EB=8A=94=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/reducer/video-list.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: