Skip to content

Commit

Permalink
fix completed tab not loading
Browse files Browse the repository at this point in the history
  • Loading branch information
jecihjoy committed Apr 10, 2024
1 parent da262fa commit 7997605
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/completed-list/completed-list.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const CompletedList: React.FC<CompletedListProps> = ({
// eslint-disable-next-line prefer-const
let { workListEntries, isLoading } = useOrdersWorklist("", fulfillerStatus);
workListEntries = workListEntries.filter(
(order) => order?.procedures[0]?.status == "COMPLETED"
(order) => order?.procedures?.length > 0
);
const [activatedOnOrAfterDate, setActivatedOnOrAfterDate] = useState("");
const pageSizes = [10, 20, 30, 40, 50];
Expand Down
2 changes: 1 addition & 1 deletion src/referred-procedures/referred-procedures.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const WorkList: React.FC<WorklistProps> = ({ fulfillerStatus }) => {
onClick={() => {
launchOverlay(
t("postProcedureResultForm", "Procedure report form"),
<PostProcedureForm patientUuid={patientUuid} procedure={order} />
<PostProcedureForm patientUuid={patientUuid} order={order} />
);
}}
renderIcon={(props) => (
Expand Down
6 changes: 3 additions & 3 deletions src/work-list/work-list.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ const WorkList: React.FC<WorklistProps> = ({ fulfillerStatus }) => {

// eslint-disable-next-line prefer-const
let { workListEntries, isLoading } = useOrdersWorklist("", fulfillerStatus);
// workListEntries = workListEntries.filter(
// (order) => order?.procedures?.length == 0
// );
workListEntries = workListEntries.filter(
(order) => order?.procedures?.length == 0
);
const [activatedOnOrAfterDate, setActivatedOnOrAfterDate] = useState("");
const pageSizes = [10, 20, 30, 40, 50];
const [currentPageSize, setPageSize] = useState(10);
Expand Down

0 comments on commit 7997605

Please sign in to comment.