Skip to content

Commit

Permalink
Merge pull request #1407 from dpc-sdp/bugfix/SD-525-map-sidepanel-hig…
Browse files Browse the repository at this point in the history
…hlight

[SD-525] Fixed map sidepanel needed a unique id for highlighting
  • Loading branch information
jeffdowdle authored Dec 12, 2024
2 parents 2c24008 + 110f925 commit 5d47776
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ const searchResultsMappingFn = (item): TideSearchListingResultItem => {
id: item._id,
component: itemComponent,
props: {
result: transformedItem
result: {
_id: item._id,
...transformedItem
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const handlePageChange = (event) => {
const getItemId = (item) => {
if (!item) return ''
return get(item, props.mapConfig?.sidePanel?.itemIdObjPath || 'unique_id')
return get(item, props.mapConfig?.sidePanel?.itemIdObjPath || '_id')
}
</script>

Expand Down

0 comments on commit 5d47776

Please sign in to comment.