From f1a6b03607b26b9fa364ec1bb3a771084f51fa70 Mon Sep 17 00:00:00 2001 From: Marcella Maki Date: Thu, 8 Feb 2024 09:40:21 -0500 Subject: [PATCH] Conditionalize missing resource check when resource is not an empty object --- .../assets/src/views/reports/ReportsResourceHeader.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/kolibri/plugins/coach/assets/src/views/reports/ReportsResourceHeader.vue b/kolibri/plugins/coach/assets/src/views/reports/ReportsResourceHeader.vue index 53610d5952a..a312fa33a3c 100644 --- a/kolibri/plugins/coach/assets/src/views/reports/ReportsResourceHeader.vue +++ b/kolibri/plugins/coach/assets/src/views/reports/ReportsResourceHeader.vue @@ -23,7 +23,7 @@ /> - +

@@ -181,6 +181,12 @@ this.resource.license_description ); }, + resourceMissing() { + if (Object.keys(this.resource).length !== 0) { + return !this.$isPrint && !this.resource.available; + } + return false; + }, }, $trs: { licenseDataHeader: {