diff --git a/src/app/organization/adhoc-query/view-adhoc-query/view-adhoc-query.component.html b/src/app/organization/adhoc-query/view-adhoc-query/view-adhoc-query.component.html
index 2d78f7877..6778618db 100644
--- a/src/app/organization/adhoc-query/view-adhoc-query/view-adhoc-query.component.html
+++ b/src/app/organization/adhoc-query/view-adhoc-query/view-adhoc-query.component.html
@@ -46,7 +46,7 @@
- {{ adhocQueryData.reportRunFrequency }}
+ {{ reportRunFrequency }}
diff --git a/src/app/organization/adhoc-query/view-adhoc-query/view-adhoc-query.component.ts b/src/app/organization/adhoc-query/view-adhoc-query/view-adhoc-query.component.ts
index 9be43652b..351f86b3a 100644
--- a/src/app/organization/adhoc-query/view-adhoc-query/view-adhoc-query.component.ts
+++ b/src/app/organization/adhoc-query/view-adhoc-query/view-adhoc-query.component.ts
@@ -41,6 +41,18 @@ export class ViewAdhocQueryComponent implements OnInit {
ngOnInit() {
}
+ /**
+ * Retrieves the report run frequency value from id
+ * @returns {string} Report run frequency value.
+ */
+ get reportRunFrequency(): string {
+ for (const reportRunFrequency of this.adhocQueryData.reportRunFrequencies) {
+ if (reportRunFrequency.id === this.adhocQueryData.reportRunFrequency) {
+ return reportRunFrequency.value;
+ }
+ }
+ }
+
/**
* Deletes the adhoc query and redirects to adhoc queries.
*/