Skip to content

Commit

Permalink
Remove clear all filters when no filters are applied. (#8466)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sulochan-khadka authored Sep 10, 2024
1 parent 760ef63 commit 7769eb9
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/Components/Facility/DischargedPatientsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -417,12 +417,15 @@ const DischargedPatientsList = ({
),
]}
children={
<>
{qParams.last_consultation_admitted_bed_type_list &&
LastAdmittedToTypeBadges()}
{qParams.last_consultation__consent_types &&
HasConsentTypesBadges()}
</>
(qParams.last_consultation_admitted_bed_type_list ||
qParams.last_consultation__consent_types) && (
<>
{qParams.last_consultation_admitted_bed_type_list &&
LastAdmittedToTypeBadges()}
{qParams.last_consultation__consent_types &&
HasConsentTypesBadges()}
</>
)
}
/>
</div>
Expand Down

0 comments on commit 7769eb9

Please sign in to comment.