conditional useStore
This commit is contained in:
parent
2bbddb5357
commit
645b78d033
1 changed files with 2 additions and 2 deletions
|
|
@ -46,10 +46,10 @@ export default function PageErrorHandlingWrapper({
|
|||
}
|
||||
}, [errorData.isNotFoundError]);
|
||||
|
||||
if (!errorData.isWrongTeamError) {return children();}
|
||||
|
||||
const store = useStore();
|
||||
|
||||
if (!errorData.isWrongTeamError) {return children();}
|
||||
|
||||
const currentTeamId = store.userStore.currentUser?.current_team;
|
||||
const currentTeam = store.grafanaTeamStore.items[currentTeamId]?.name;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue