Skip to content
Snippets Groups Projects
Unverified Commit 6cf20fef authored by Jack Reed's avatar Jack Reed Committed by GitHub
Browse files

Merge pull request #3211 from ProjectMirador/3208-search-without-hits

Guard against missing hits
parents fa8ae199 72c6588b
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ import { ...@@ -20,7 +20,7 @@ import {
* @private * @private
*/ */
const mapStateToProps = (state, { const mapStateToProps = (state, {
annotationId, hit, companionWindowId, windowId, annotationId, hit = { annotations: [] }, companionWindowId, windowId,
}) => { }) => {
const realAnnoId = annotationId || hit.annotations[0]; const realAnnoId = annotationId || hit.annotations[0];
const hitAnnotation = getResourceAnnotationForSearchHit( const hitAnnotation = getResourceAnnotationForSearchHit(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment