Skip to content

Commit

Permalink
Clear selectedTags and turn off selection mode on page leave Workspac…
Browse files Browse the repository at this point in the history
…eViewTagsPage
  • Loading branch information
filip-solecki committed Aug 2, 2024
1 parent 3e45b13 commit 4f10c9f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pages/workspace/tags/WorkspaceViewTagsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ function WorkspaceViewTagsPage({route}: WorkspaceViewTagsProps) {
return;
}
setSelectedTags({});

return () => {
setSelectedTags({});
turnOffMobileSelectionMode();
};
}, [isFocused]);

const tagList = useMemo<TagListItem[]>(
Expand Down

0 comments on commit 4f10c9f

Please sign in to comment.