Skip to content

Commit

Permalink
fix(@dpc-sdp/ripple-tide-search): fixed map sidepanel needing a uniqu…
Browse files Browse the repository at this point in the history
…e id in data
  • Loading branch information
jeffdowdle committed Dec 11, 2024
1 parent 2c24008 commit 110f925
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 110f925

Please sign in to comment.