Skip to content

Commit

Permalink
Fixed reloading issue while Opening Investigations or Treatment Summa…
Browse files Browse the repository at this point in the history
…ry in Consultation Dashboard.
  • Loading branch information
shyamprakash123 committed Nov 9, 2023
1 parent f575710 commit 3a4e250
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Components/Patient/PatientInfoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -441,14 +441,14 @@ export default function PatientInfoCard(props: {
(action: any, i) =>
action[3] && (
<div key={i}>
<a
<Link
key={i}
className="dropdown-item-primary pointer-events-auto m-2 flex cursor-pointer items-center justify-start gap-2 rounded border-0 p-2 text-sm font-normal transition-all duration-200 ease-in-out"
href={
consultation?.admitted &&
!consultation?.current_bed &&
i === 1
? undefined
? ""
: `${action[0]}`
}
onClick={() => {
Expand All @@ -473,7 +473,7 @@ export default function PatientInfoCard(props: {
className={`care-l-${action[2]} text-lg text-primary-500`}
/>
<span>{action[1]}</span>
</a>
</Link>
{action?.[4]?.[0] && (
<>
<p className="mt-1 text-xs text-red-500">
Expand Down

0 comments on commit 3a4e250

Please sign in to comment.