Skip to content

Commit

Permalink
Merge pull request #457 from yext/hotfix/v1.6.2
Browse files Browse the repository at this point in the history
Version 1.6.2
**Fixes**
- Enables Document Verticals to use VerticalResult by adjusting VerticalResult map key to combine the result id and index avoiding conflicts #456
  • Loading branch information
sahilvaidya authored Aug 12, 2024
2 parents 9b282d9 + 01ecfa9 commit ae60515
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
Binary file modified .storybook/snapshots/__snapshots__/mapboxmap--custom-pin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .storybook/snapshots/__snapshots__/mapboxmap--primary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yext/search-ui-react",
"version": "1.6.1",
"version": "1.6.2",
"description": "A library of React Components for powering Yext Search integrations",
"author": "[email protected]",
"license": "BSD-3-Clause",
Expand Down
3 changes: 2 additions & 1 deletion src/components/VerticalResultsDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@ function renderResult<T>(
CardComponent: CardComponent<T>,
result: Result<T>
): JSX.Element {
return <CardComponent result={result} key={result.id || result.index}/>;
const key = result.id && result.index ? `${result.id}-${result.index}` : result.id || result.index;
return <CardComponent result={result} key={key}/>;
}

0 comments on commit ae60515

Please sign in to comment.