From 7488747a4e40f8cea1af230f369bc74695ec6eaa Mon Sep 17 00:00:00 2001 From: himeshr Date: Wed, 27 Nov 2024 13:14:04 +0530 Subject: [PATCH] #1530 | Use only non-voided dashboard filters during hash computation --- .../openchs-android/src/service/CustomDashboardCacheService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/openchs-android/src/service/CustomDashboardCacheService.js b/packages/openchs-android/src/service/CustomDashboardCacheService.js index 75e7b060e..fab622b83 100644 --- a/packages/openchs-android/src/service/CustomDashboardCacheService.js +++ b/packages/openchs-android/src/service/CustomDashboardCacheService.js @@ -24,7 +24,7 @@ function getDashboardCache(service, dashboardUUID) { } function getDashboardFiltersHash(dashboard) { - const str = JSON.stringify(dashboard.filters.map((x) => x.filterConfig)); + const str = JSON.stringify(dashboard.filters.filter(x => !x.voided).map((x) => x.filterConfig)); return new Hashes.MD5().hex(str); }