diff --git a/src/client/actions/fileops.actions.tsx b/src/client/actions/fileops.actions.tsx index bb54b2b..d2669a5 100644 --- a/src/client/actions/fileops.actions.tsx +++ b/src/client/actions/fileops.actions.tsx @@ -301,7 +301,7 @@ export const searchIssue = (query, options) => async (dispatch) => { case "wantedComicsPage": dispatch({ type: WANTED_COMICS_FETCHED, - data: response.data.body, + data: response.data.hits, }); break; case "globalSearchBar": @@ -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/Downloads/Downloads.tsx b/src/client/components/Downloads/Downloads.tsx index 7481340..a18eafe 100644 --- a/src/client/components/Downloads/Downloads.tsx +++ b/src/client/components/Downloads/Downloads.tsx @@ -3,7 +3,6 @@ import { getTransfers } from "../../actions/airdcpp.actions"; import { useDispatch, useSelector } from "react-redux"; import { AirDCPPSocketContext } from "../../context/AirDCPPSocket"; import { isEmpty, isNil, isUndefined } from "lodash"; -import { searchIssue } from "../../actions/fileops.actions"; import { determineCoverFile } from "../../shared/utils/metadata.utils"; import MetadataPanel from "../shared/MetadataPanel"; @@ -47,7 +46,6 @@ export const Downloads = (props: IDownloadsProps): ReactElement => { }) setBundles(foo); } - }, [issueBundles]) return !isNil(bundles) ? @@ -56,9 +54,9 @@ export const Downloads = (props: IDownloadsProps): ReactElement => {
| Name | Size | Type | Bundle ID |
|---|---|---|---|
| {bundle.name} | {bundle.size} | {bundle.type.str} | {bundle.bundleId} |
{JSON.stringify(bundle.acquisition.directconnect.downloads, null, 2)} */}
- >
+ {totalPages} comics in all
*/}+
+
diff --git a/src/client/reducers/fileops.reducer.ts b/src/client/reducers/fileops.reducer.ts index 50f048f..210c85c 100644 --- a/src/client/reducers/fileops.reducer.ts +++ b/src/client/reducers/fileops.reducer.ts @@ -246,7 +246,7 @@ function fileOpsReducer(state = initialState, action) { case WANTED_COMICS_FETCHED: { const foo = []; if (!isUndefined(action.data.hits)) { - map(action.data.hits.hits, ({ _source }) => { + map(action.data.hits, ({ _source }) => { foo.push(_source); }); }