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
Branches
Tags
No related merge requests found
......@@ -20,7 +20,7 @@ import {
* @private
*/
const mapStateToProps = (state, {
annotationId, hit, companionWindowId, windowId,
annotationId, hit = { annotations: [] }, companionWindowId, windowId,
}) => {
const realAnnoId = annotationId || hit.annotations[0];
const hitAnnotation = getResourceAnnotationForSearchHit(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment