fix projects metrics on dashboard (#10651)

This commit is contained in:
Bernardo De Marco Gonçalves 2025-04-08 07:16:18 -03:00 committed by GitHub
parent ee94ae575b
commit d5ba39387b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -460,9 +460,13 @@ export default {
},
listProject () {
this.loading = true
api('listProjects', { id: store.getters.project.id }).then(json => {
const params = {
id: store.getters.project.id,
listall: true
}
api('listProjects', params).then(json => {
this.loading = false
if (json && json.listprojectsresponse && json.listprojectsresponse.project) {
if (json?.listprojectsresponse?.project) {
this.project = json.listprojectsresponse.project[0]
}
})