Skip to content

Commit

Permalink
Merge pull request #1126 from DeepBlueCLtd/1125_clear_selection_on_le…
Browse files Browse the repository at this point in the history
…aving_items_page

fix: clear selected items on leaving items page.
  • Loading branch information
IanMayo authored Aug 2, 2024
2 parents a561297 + f2852a9 commit 6376c39
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/resources/items/ItemList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,10 @@ export default function ItemList(
}
}
}
useEffect(() => {
localStorage.removeItem('RaStore.items-items-list');
localStorage.removeItem("RaStore.richItem.selectedIds")
}, [location.pathname]);

useEffect(() => {
if (configData?.projectName) {
Expand Down

0 comments on commit 6376c39

Please sign in to comment.