mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
Fleet UI: Use app context currentTeam as source of truth for teamId (#10118)
This commit is contained in:
parent
593a64fde0
commit
1a37f9bf5a
1
changes/10104-policy-tab-click-bug
Normal file
1
changes/10104-policy-tab-click-bug
Normal file
@ -0,0 +1 @@
|
||||
* Fix bug to keep team when clicking on policy tab twice
|
@ -68,9 +68,7 @@ const ManagePolicyPage = ({
|
||||
} = useContext(AppContext);
|
||||
const { renderFlash } = useContext(NotificationContext);
|
||||
|
||||
const teamId = location?.query?.team_id
|
||||
? parseInt(location?.query?.team_id, 10)
|
||||
: 0;
|
||||
const teamId = currentTeam?.id || 0;
|
||||
|
||||
const {
|
||||
setLastEditedQueryName,
|
||||
|
Loading…
Reference in New Issue
Block a user