From 7ea55cc99163210974b18b28dedc2b5fad5b3096 Mon Sep 17 00:00:00 2001
From: Sulochan Khadka <122200551+Sulochan-khadka@users.noreply.github.com>
Date: Tue, 3 Sep 2024 12:40:25 +0530
Subject: [PATCH 1/2] Do not show clear all filters button if there is no
filter applied in Discharge patients page #8449
---
src/Common/hooks/useFilters.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Common/hooks/useFilters.tsx b/src/Common/hooks/useFilters.tsx
index c0919be9acc..a4d6cfe06f9 100644
--- a/src/Common/hooks/useFilters.tsx
+++ b/src/Common/hooks/useFilters.tsx
@@ -194,7 +194,7 @@ export default function useFilters({
))}
{children}
- {show && (
+ {activeFilters.length > 0 && (