You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
On the Browse Testimony page, if you flip between the "All", "Individual", and "Org" tabs - you will see a different testimony counts between when the page is first loaded and after navigating away from and back to the same tab.
Describe the bug
On the Browse Testimony page, if you flip between the "All", "Individual", and "Org" tabs - you will see a different testimony counts between when the page is first loaded and after navigating away from and back to the same tab.
This is because of the way we handle the tab filtering - the role check we use only accounts for "user" and "org" roles - not other roles like "admin". We should update the role filter in https://github.com/codeforboston/maple/blob/main/components/search/testimony/TestimonySearch.tsx#L106 so that we don't erroneously filter out testimony from non-"user"/"org" users on subsequent tab loads.
For more info, see the investigation result ticket: #1613 (comment)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Navigating back and forth between tabs should not change the result count within the same tab.
Actual Results + Screenshots
First page load:
After navigating away from and back to tab:
The text was updated successfully, but these errors were encountered: