Skip to content

Commit

Permalink
fix(examples): prevent conflict between recently viewed items and sea…
Browse files Browse the repository at this point in the history
…rches plugins (#1178)
  • Loading branch information
dhayab authored Aug 11, 2023
1 parent 207d41a commit f341055
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/recently-viewed-items/recentlyViewedItemsPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export function createLocalStorageRecentlyViewedItems<

return {
...transformedSource,
sourceId: 'recentlyViewedItemsPlugin',
getItemUrl({ item }) {
return item.url;
},
Expand Down Expand Up @@ -128,6 +129,7 @@ export function createLocalStorageRecentlyViewedItems<

return {
...plugin,
name: 'aa.localStorageRecentlyViewedItemsPlugin',
data,
};
}

0 comments on commit f341055

Please sign in to comment.