From 5b1ed2bdb8ae214670bd473d6ebb8b9fee1042a1 Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Wed, 1 Mar 2023 23:40:18 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Fixed=20the=20response=20object?= =?UTF-8?q?=20in=20reducers=20and=20components=20https://github.com/rishig?= =?UTF-8?q?han/threetwo/issues/64?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rishi Ghan --- src/client/actions/fileops.actions.tsx | 4 ++-- src/client/components/Library/Library.tsx | 4 ++-- src/client/components/Volumes/Volumes.tsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/client/actions/fileops.actions.tsx b/src/client/actions/fileops.actions.tsx index bb54b2b..3f35c19 100644 --- a/src/client/actions/fileops.actions.tsx +++ b/src/client/actions/fileops.actions.tsx @@ -314,13 +314,13 @@ export const searchIssue = (query, options) => async (dispatch) => { case "libraryPage": dispatch({ type: SS_SEARCH_RESULTS_FETCHED, - data: response.data.body, + data: response.data.hits, }); break; case "volumesPage": dispatch({ type: VOLUMES_FETCHED, - data: response.data.body, + data: response.data.hits, }); break; diff --git a/src/client/components/Library/Library.tsx b/src/client/components/Library/Library.tsx index c808ec3..6099c51 100644 --- a/src/client/components/Library/Library.tsx +++ b/src/client/components/Library/Library.tsx @@ -221,9 +221,9 @@ export const Library = (): ReactElement => {
{
{}, previousPage: () => {},