Skip to content

Commit d5ba393

Browse files
fix projects metrics on dashboard (#10651)
1 parent ee94ae5 commit d5ba393

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ui/src/views/dashboard/UsageDashboard.vue

+6-2
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,13 @@ export default {
460460
},
461461
listProject () {
462462
this.loading = true
463-
api('listProjects', { id: store.getters.project.id }).then(json => {
463+
const params = {
464+
id: store.getters.project.id,
465+
listall: true
466+
}
467+
api('listProjects', params).then(json => {
464468
this.loading = false
465-
if (json && json.listprojectsresponse && json.listprojectsresponse.project) {
469+
if (json?.listprojectsresponse?.project) {
466470
this.project = json.listprojectsresponse.project[0]
467471
}
468472
})

0 commit comments

Comments
 (0)