Skip to content

Commit

Permalink
Merge pull request #1980 from LD4P/search_error
Browse files Browse the repository at this point in the history
Fixes QA error message.
  • Loading branch information
justinlittman authored Dec 9, 2019
2 parents dbd30d9 + 221ce1d commit aa3025f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/actionCreators/search.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ describe('fetchQASearchResults', () => {
totalResults: 0,
options: {},
facetResults: undefined,
error: { message: 'Ooops...' },
error: 'Ooops...',
},
})
})
Expand Down
2 changes: 1 addition & 1 deletion src/actionCreators/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const fetchQASearchResults = (query, uri, options = {}) => (dispatch) =>

return searchPromise.then((response) => {
if (response.isError) {
dispatch(setSearchResults(uri, [], 0, undefined, query, options, { message: response.errorObject.message }))
dispatch(setSearchResults(uri, [], 0, undefined, query, options, response.errorObject.message))
} else {
dispatch(setSearchResults(uri, response.body.results, response.body.response_header.total_records, undefined, query, options))
}
Expand Down

0 comments on commit aa3025f

Please sign in to comment.