From 692e51ba4be08e97c4b07cc344edca082dc50f63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Csord=C3=A1s?= Date: Wed, 3 Feb 2021 11:05:07 +0100 Subject: [PATCH] [server] Fix filtering number of outstanding reports on the statistics page The number of outstanding reports are not filtered by the BASELINE run filters because the run ids in the compare data for the API function is not set. --- .../vue-cli/src/components/Statistics/Overview/Reports.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/server/vue-cli/src/components/Statistics/Overview/Reports.vue b/web/server/vue-cli/src/components/Statistics/Overview/Reports.vue index f44f38a095..601d3b4d77 100644 --- a/web/server/vue-cli/src/components/Statistics/Overview/Reports.vue +++ b/web/server/vue-cli/src/components/Statistics/Overview/Reports.vue @@ -120,7 +120,10 @@ export default { mixins: [ DateMixin ], props: { bus: { type: Object, required: true }, - runIds: { type: Array, required: true }, + runIds: { + required: true, + validator: v => typeof v === "object" || v === null + }, reportFilter: { type: Object, required: true }, }, data() { @@ -186,6 +189,7 @@ export default { rFilter.openReportsDate = this.getUnixTime(date[0]); const cmpData = new CompareData({ + runIds: this.runIds, openReportsDate: this.getUnixTime(date[1]), diffType: DiffType.NEW });