Skip to content

Commit

Permalink
UHM-4934: Create "circular workflow" for adding Lab Orders from the L…
Browse files Browse the repository at this point in the history
…ab Workflow module

hack to hide lab list page when redirecting to Lab Results entry page
  • Loading branch information
mogoodrich committed Apr 7, 2023
1 parent 41f408a commit 9298ed1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app/js/components/LabOrdersList/LabOrdersList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,14 @@ export class LabOrdersList extends PureComponent {
}

render() {
const {
match,
} = this.props;

// hack (see below) to hide any display if we know we are going
// to be redirecting to the results entry page after loading
const willRedirectToResultsEntry = match.params.orderUuids;

const {
labTests,
orders,
Expand All @@ -350,7 +358,8 @@ export class LabOrdersList extends PureComponent {
} = labOrdersListFilters;
const { returnUrl } = this.state;
const hasData = !R.isEmpty(orders) && !R.isEmpty(labTests);
return (
// eslint-disable-next-line
return (!willRedirectToResultsEntry &&
<div
className="main-container"
ref={(el) => {
Expand Down

0 comments on commit 9298ed1

Please sign in to comment.