Skip to content

Commit

Permalink
fix lab bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jabahum committed Apr 17, 2024
1 parent 1102440 commit b693e34
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 9 deletions.
6 changes: 1 addition & 5 deletions src/completed-list/completed-list.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,7 @@ const CompletedList: React.FC<CompletedListProps> = ({ fulfillerStatus }) => {

const tableRows = useMemo(() => {
return paginatedCompletedOrderEntries
?.filter(
(item) =>
(item?.action === "DISCONTINUE" || item?.action === "REVISE") &&
item?.fulfillerStatus === fulfillerStatus
)
?.filter((item) => item?.fulfillerStatus === fulfillerStatus)
.map((entry) => ({
...entry,
id: entry?.uuid,
Expand Down
5 changes: 3 additions & 2 deletions src/review-list/review-list.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ const ReviewList: React.FC<ReviewlistProps> = ({ fulfillerStatus }) => {

const filtered = reviewOrderEntries?.filter(
(item) =>
item?.action === "REVISE" &&
item?.fulfillerStatus === "IN_PROGRESS" &&
item?.dateStopped !== null &&
item?.instructions !== "REFER TO cphl"
(item?.instructions !== "REFER TO cphl" ||
item?.instructions === null ||
item?.instructions === undefined)
);

const pageSizes = [10, 20, 30, 40, 50];
Expand Down
30 changes: 28 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4277,10 +4277,11 @@ __metadata:
"@openmrs/esm-config": 5.x
"@openmrs/esm-error-handling": 5.x
"@openmrs/esm-extensions": 5.x
"@openmrs/esm-feature-flags": 5.x
"@openmrs/esm-globals": 5.x
"@openmrs/esm-navigation": 5.x
dayjs: 1.x
i18next: 19.x
i18next: 21.x
react: 18.x
react-dom: 18.x
react-i18next: 11.x
Expand Down Expand Up @@ -4350,14 +4351,18 @@ __metadata:
"@react-spectrum/datepicker": "npm:^3.8.0"
"@react-spectrum/provider": "npm:^3.9.0"
"@react-spectrum/theme-default": "npm:^3.5.6"
core-js-pure: "npm:^3.36.0"
d3: "npm:^7.8.0"
geopattern: "npm:^1.2.3"
lodash-es: "npm:^4.17.21"
react-avatar: "npm:^5.0.3"
peerDependencies:
"@openmrs/esm-extensions": 5.x
"@openmrs/esm-framework": 5.x
"@openmrs/esm-react-utils": 5.x
"@openmrs/esm-state": 5.x
"@openmrs/esm-translations": 5.x
dayjs: 1.x
i18next: 21.x
react: 18.x
react-dom: 18.x
rxjs: 6.x
Expand Down Expand Up @@ -9192,6 +9197,13 @@ __metadata:
languageName: node
linkType: hard

"core-js-pure@npm:^3.36.0":
version: 3.37.0
resolution: "core-js-pure@npm:3.37.0"
checksum: 10/196116e73370d075be9a95fe3605c210f8e53c7c18aeefe491fd9bc6442f2c1887d4b43128777bf4a5824d207e258578b507fc3d711a6ceb6144de500f2ffa23
languageName: node
linkType: hard

"core-util-is@npm:~1.0.0":
version: 1.0.3
resolution: "core-util-is@npm:1.0.3"
Expand Down Expand Up @@ -11598,6 +11610,13 @@ __metadata:
languageName: node
linkType: hard

"extend@npm:~1.2.1":
version: 1.2.1
resolution: "extend@npm:1.2.1"
checksum: 10/bfebc6fd4d924f9a8872cfebbda8fc543bae58ca3ec7fe7a5189a706402bd465559b82a106db589088d60e8348e04d8597a1d3760cb5e3d8cf184bcd924ac569
languageName: node
linkType: hard

"external-editor@npm:^3.0.3":
version: 3.1.0
resolution: "external-editor@npm:3.1.0"
Expand Down Expand Up @@ -14042,6 +14061,13 @@ __metadata:
languageName: node
linkType: hard

"is-retina@npm:^1.0.3":
version: 1.0.3
resolution: "is-retina@npm:1.0.3"
checksum: 10/7f8306095851aaa55d7dd4a2edffb53942f45388d4d19299a788ca7d30f9f2b7ae0884237b2262a5f8a6d9d5f57e934da3fdbec60b174469054ef080ac29012f
languageName: node
linkType: hard

"is-set@npm:^2.0.1, is-set@npm:^2.0.2":
version: 2.0.2
resolution: "is-set@npm:2.0.2"
Expand Down

0 comments on commit b693e34

Please sign in to comment.