Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✔️ Fixed reloading issue while Opening Investigations or Treatment Summary in Consultation Dashboard. #6576

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
Loading