From 8c5550ec22bf189e4de5167320ed9c2bfdd3f738 Mon Sep 17 00:00:00 2001 From: Hanbee Lee Date: Mon, 15 Aug 2022 00:01:09 +0900 Subject: [PATCH] =?UTF-8?q?:hammer:fix:=ED=8B=B0=EC=BC=93=EC=98=A4?= =?UTF-8?q?=EB=A5=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Tables/TicketsPage/TicketsPage.js | 2 +- src/state/actions-creators/ticketPagination.js | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/Tables/TicketsPage/TicketsPage.js b/src/components/Tables/TicketsPage/TicketsPage.js index 8d9c48e..c2078f9 100644 --- a/src/components/Tables/TicketsPage/TicketsPage.js +++ b/src/components/Tables/TicketsPage/TicketsPage.js @@ -116,7 +116,7 @@ function TicketsPage() { }} /> } color="default"> - 총 티켓 수:{data ? data.meta.itemCount : ''} + 총 티켓 수:{data ? data.total : ''} diff --git a/src/state/actions-creators/ticketPagination.js b/src/state/actions-creators/ticketPagination.js index e54c40b..f48603d 100644 --- a/src/state/actions-creators/ticketPagination.js +++ b/src/state/actions-creators/ticketPagination.js @@ -20,8 +20,7 @@ export const ticketPagination = const data = { total: response.data.data.meta.itemCount, currentPage: requestPage, - ticketList: response.data.data.data, - meta: response.data.data.meta + ticketList: response.data.data.data }; dispatch({ type: TICKET_PAGINATION_SUCCESS, payload: data }); @@ -78,8 +77,7 @@ export const ticketPagi = const data = { total: response.data.data.meta.itemCount, currentPage: page, - ticketList: response.data.data.data, - meta: response.data.data.meta + ticketList: response.data.data.data }; dispatch({ type: TICKET_PAGINATION_SUCCESS, payload: data });