Skip to content
Snippets Groups Projects
Commit 381b2e09 authored by esikkala's avatar esikkala
Browse files

Update Leaflet route

parent cfbb6dd6
No related branches found
No related tags found
No related merge requests found
......@@ -167,13 +167,15 @@ const ResultClassRoute = props => {
infoHeaderExpanded: perspectiveState.facetedSearchHeaderExpanded,
layoutConfig: props.layoutConfig
}
if (facetID) {
leafletProps = {
...leafletProps,
facetUpdateID: facetState.facetUpdateID,
facet: facetState.facets[facetID],
facetID,
updateFacetOption: props.updateFacetOption
if (pageType === 'facetResults') {
leafletProps.facetUpdateID = facetState.facetUpdateID
if (facetID) {
leafletProps = {
...leafletProps,
facet: facetState.facets[facetID],
facetID,
updateFacetOption: props.updateFacetOption
}
}
}
if (pageType === 'instancePage') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment