🕵🏼 Added manual search form for CV matching

This commit is contained in:
2022-09-28 09:51:48 -07:00
parent eda11d3537
commit b699a90a00
6 changed files with 73 additions and 76 deletions

View File

@@ -194,6 +194,7 @@ export const fetchVolumeGroups = () => async (dispatch) => {
};
export const fetchComicVineMatches =
(searchPayload, issueSearchQuery, seriesSearchQuery?) => async (dispatch) => {
console.log(issueSearchQuery);
try {
dispatch({
type: CV_API_CALL_IN_PROGRESS,
@@ -223,7 +224,6 @@ export const fetchComicVineMatches =
},
})
.then((response) => {
console.log(response);
let matches: any = [];
if (
!isNil(response.data.results) &&
@@ -233,7 +233,6 @@ export const fetchComicVineMatches =
} else {
matches = response.data.map((match) => match);
}
console.log(matches);
dispatch({
type: CV_SEARCH_SUCCESS,
searchResults: matches,