refactor: updated dashboard gql queries and components to use the new infra type of the updated schema (#3455)
This commit is contained in:
committed by
GitHub
parent
a215860782
commit
9dcbc4a126
@@ -187,7 +187,7 @@ const emit = defineEmits<{
|
||||
const showInvite = ref(false);
|
||||
|
||||
// Get Team Details
|
||||
const team = ref<TeamInfoQuery['admin']['teamInfo'] | undefined>();
|
||||
const team = ref<TeamInfoQuery['infra']['teamInfo'] | undefined>();
|
||||
const fetching = ref(true);
|
||||
const route = useRoute();
|
||||
const { client } = useClientHandle();
|
||||
@@ -201,8 +201,8 @@ const getTeamInfo = async () => {
|
||||
if (result.error) {
|
||||
return toast.error(`${t('teams.load_info_error')}`);
|
||||
}
|
||||
if (result.data?.admin.teamInfo) {
|
||||
team.value = result.data.admin.teamInfo;
|
||||
if (result.data?.infra.teamInfo) {
|
||||
team.value = result.data.infra.teamInfo;
|
||||
}
|
||||
fetching.value = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user