Skip to content

Commit 6734fbb

Browse files
committed
check for status completed to show view patient
1 parent 9c17a6c commit 6734fbb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/esm-patient-queues-app/src/active-visits/active-visits-table.component.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,10 @@ const ActiveVisitsTable: React.FC<ActiveVisitsTableProps> = ({ status }) => {
201201
)}
202202
</>
203203
)}
204-
<ViewActionsMenu to={`\${openmrsSpaBase}/patient/${entry?.patientUuid}/chart`} from={fromPage} />
204+
205+
{entry.status === 'COMPLETED' && (
206+
<ViewActionsMenu to={`\${openmrsSpaBase}/patient/${entry?.patientUuid}/chart`} from={fromPage} />
207+
)}
205208
<NotesActionsMenu note={entry} />
206209
</div>
207210
),

0 commit comments

Comments
 (0)