Skip to content

Commit

Permalink
[v1.0.1] 티켓 수정시 오류 해결
Browse files Browse the repository at this point in the history
[v1.0.1] 티켓 수정시 오류 해결
  • Loading branch information
ImNM authored Aug 14, 2022
2 parents 051a105 + d4f3ba5 commit 830efd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Tables/TicketsPage/TicketsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function TicketsPage() {
}}
/>
<Tag icon={<DollarCircleOutlined />} color="default">
총 티켓 수:{data ? data.meta.itemCount : ''}
총 티켓 수:{data ? data.total : ''}
</Tag>
</Space>
</div>
Expand Down
6 changes: 2 additions & 4 deletions src/state/actions-creators/ticketPagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down Expand Up @@ -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 });
Expand Down

0 comments on commit 830efd0

Please sign in to comment.