Skip to content

Commit

Permalink
Clicking the same status filter twice now resets the encounters list …
Browse files Browse the repository at this point in the history
…to display all statuses.
  • Loading branch information
siddheshThorat04 committed Mar 2, 2025
1 parent 4e2e97e commit d509927
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pages/Encounters/EncounterList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ export function EncounterList({
if (status === "planned") {
updateQuery({
...{ encounter_class: encounterClass, priority },
status: "all",
status: undefined,
});
} else {
updateQuery({
Expand All @@ -523,7 +523,7 @@ export function EncounterList({
if (status === "in_progress") {
updateQuery({
...{ encounter_class: encounterClass, priority },
status: "all",
status: undefined,
});
} else {
updateQuery({
Expand All @@ -543,7 +543,7 @@ export function EncounterList({
if (status === "discharged") {
updateQuery({
...{ encounter_class: encounterClass, priority },
status: "all",
status: undefined,
});
} else {
updateQuery({
Expand All @@ -563,7 +563,7 @@ export function EncounterList({
if (status === "completed") {
updateQuery({
...{ encounter_class: encounterClass, priority },
status: "all",
status: undefined,
});
} else {
updateQuery({
Expand All @@ -583,7 +583,7 @@ export function EncounterList({
if (status === "cancelled") {
updateQuery({
...{ encounter_class: encounterClass, priority },
status: "all",
status: undefined,
});
} else {
updateQuery({
Expand Down

0 comments on commit d509927

Please sign in to comment.