Skip to content

Commit 1201e8c

Browse files
bernardodemarcodhslove
authored andcommitted
fix projects metrics on dashboard (apache#10651)
1 parent 4c039ac commit 1201e8c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

ui/src/views/dashboard/UsageDashboard.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,13 @@ export default {
463463
},
464464
listProject () {
465465
this.loading = true
466-
api('listProjects', { id: store.getters.project.id }).then(json => {
466+
const params = {
467+
id: store.getters.project.id,
468+
listall: true
469+
}
470+
api('listProjects', params).then(json => {
467471
this.loading = false
468-
if (json && json.listprojectsresponse && json.listprojectsresponse.project) {
472+
if (json?.listprojectsresponse?.project) {
469473
this.project = json.listprojectsresponse.project[0]
470474
}
471475
})

0 commit comments

Comments
 (0)