File tree Expand file tree Collapse file tree
apps/greenhouse/src/components/core-apps/org-admin/components/teams Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ GITHUB_TOKEN=e60d9593d484cd15cc610cfd8ac7bb7f26793c01
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const TeamList = () => {
2626 // @ts -ignore
2727 const matchingTeam = teamMemberships . find ( ( item : any ) => item . metadata . name === selectedTeam )
2828
29- return matchingTeam ?. spec ?. members || [ ]
29+ return matchingTeam ?. status ?. members || [ ]
3030 } , [ selectedTeam , teamMemberships ] )
3131
3232 const { scrollListItems, iterator } = useEndlessScrollList ( team , {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export const useAPI = () => {
2222 const watchTeamMembers = useCallback ( ( ) => {
2323 if ( ! client || ! namespace ) return
2424
25- const watch = client . watch ( `/apis/greenhouse.sap/v1alpha1/namespaces/${ namespace } /teammemberships ` )
25+ const watch = client . watch ( `/apis/greenhouse.sap/v1alpha1/namespaces/${ namespace } /teams ` )
2626
2727 watch . on ( client . WATCH_ERROR , ( e : any ) => {
2828 console . log ( "ERROR: Failed to watch resource" , e )
You can’t perform that action at this time.
0 commit comments