Skip to content

Commit

Permalink
cleaning up initial state
Browse files Browse the repository at this point in the history
  • Loading branch information
fisjac committed Oct 12, 2023
1 parent a8bb039 commit 9cd28bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset-frontend/src/features/home/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export function Menu({
CHART = '/chart',
DATASETS = '/tablemodelview',
}
const [activeTabs, setActiveTabs] = useState(['']);
const [activeTabs, setActiveTabs] = useState(Array<string>);
const location = useLocation();
useEffect(() => {
const path = location.pathname;
Expand All @@ -207,7 +207,7 @@ export function Menu({
setActiveTabs(['Datasets']);
break;
default:
setActiveTabs(['']);
setActiveTabs([]);
}
}, [location.pathname]);

Expand Down

0 comments on commit 9cd28bb

Please sign in to comment.