File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,12 @@ export default function (): React.ReactElement {
2727 } = useGetTeamsQuery ( ! isPlatformAdmin && skipToken )
2828 const { data : teamData } = useGetTeamQuery ( { teamId : oboTeamId } , { skip : ! oboTeamId || isPlatformAdmin } )
2929
30- const teamName = isPlatformView ? undefined : oboTeamId
30+ const teamId = isPlatformView ? undefined : oboTeamId
3131 const {
3232 data : dashboard ,
3333 isFetching : isFetchingDashboard ,
3434 refetch : refetchDashboard ,
35- } = useGetDashboardQuery ( { teamName } )
35+ } = useGetDashboardQuery ( { teamId } )
3636
3737 const isDirty = useAppSelector ( ( { global : { isDirty } } ) => isDirty )
3838 useEffect ( ( ) => {
@@ -42,7 +42,7 @@ export default function (): React.ReactElement {
4242 } , [ isDirty ] )
4343 const { t } = useTranslation ( )
4444 // END HOOKS
45- const team = ! isLoadingTeams && ( find ( teams , { name : teamName } ) || teamData )
45+ const team = ! isLoadingTeams && ( find ( teams , { name : teamId } ) || teamData )
4646 const loading = isFetchingDashboard || isLoadingTeams
4747 const teamInventory = isPlatformView ? [ { name : 'teams' , count : teams ?. length } ] : [ ]
4848 const dashboardInventory = dashboard ?? ( [ ] as any )
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ const injectedRtkApi = api.injectEndpoints({
201201 query : ( queryArg ) => ( { url : `/v2/teams/${ queryArg . teamId } /netpols/${ queryArg . netpolName } ` , method : 'DELETE' } ) ,
202202 } ) ,
203203 getDashboard : build . query < GetDashboardApiResponse , GetDashboardApiArg > ( {
204- query : ( queryArg ) => ( { url : `/v1/dashboard` , params : { teamName : queryArg . teamName } } ) ,
204+ query : ( queryArg ) => ( { url : `/v1/dashboard` , params : { teamId : queryArg . teamId } } ) ,
205205 } ) ,
206206 getAllBuilds : build . query < GetAllBuildsApiResponse , GetAllBuildsApiArg > ( {
207207 query : ( ) => ( { url : `/v1/builds` } ) ,
@@ -2999,7 +2999,7 @@ export type DeleteAplNetpolApiArg = {
29992999export type GetDashboardApiResponse = /** status 200 Successfully obtained dashboard inventory data */ object
30003000export type GetDashboardApiArg = {
30013001 /** Name of the team */
3002- teamName ?: string
3002+ teamId ?: string
30033003}
30043004export type GetAllBuildsApiResponse = /** status 200 Successfully obtained all builds configuration */ {
30053005 id ?: string
You can’t perform that action at this time.
0 commit comments