Tabs Error in the Console on Home page when logged in #584
Labels
bug fix
Fix a bug
complexity: moderate
Time needed to do this ticket will be moderate e.g. 1-2 days
help wanted
Extra attention is needed
Milestone
Describe the bug
When you are logged in and on the home page, you get an error in the console.
This comes from the SecondaryNav component. When we are on the home page, we are not in any of the tabs and the value is set as -1. -1 is not an index in the tabs.
To Reproduce
Expected behavior
We have no error in the console. Ideally we would not set a value at all. If you look at these [docs](https://mui.com/material-ui/api/tabs/) - it looks like you can set the value to false and it will select nothing and we won’t get the error.
Desktop (please complete the following information):
All OS and Browsers
The text was updated successfully, but these errors were encountered: