Skip to content

Commit

Permalink
Closing and opening new workspace should not close workspaceGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
vasharma05 committed Jan 16, 2025
1 parent bf872b6 commit 36c35b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export function OrderForm({

closeWorkspaceWithSavedChanges({
onWorkspaceClose: () => launchPatientWorkspace('order-basket'),
closeWorkspaceGroup: false,
});
},
[orders, setOrders, session?.currentProvider?.uuid, closeWorkspaceWithSavedChanges, initialOrder],
Expand All @@ -149,6 +150,7 @@ export function OrderForm({
setOrders(orders.filter((order) => order.concept.uuid !== defaultValues.concept.conceptUuid));
closeWorkspace({
onWorkspaceClose: () => launchPatientWorkspace('order-basket'),
closeWorkspaceGroup: false,
});
}, [closeWorkspace, orders, setOrders, defaultValues]);

Expand Down
2 changes: 2 additions & 0 deletions translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"removeFromBasket": "Remove from basket",
"returnToOrderBasket": "Return to order basket",
"saveOrder": "Save order",
"scheduledDate": "Scheduled date",
"scheduledDateRequired": "Scheduled date is required",
"searchAgain": "search again",
"searchMedicalSupplyOrderables": "Search medical supply orderables",
"searchResultsMatchesForTerm_one": "{{count}} results for \"{{searchTerm}}\"",
Expand Down
2 changes: 2 additions & 0 deletions translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"removeFromBasket": "Retirer du panier",
"returnToOrderBasket": "Retourner au panier de commande",
"saveOrder": "Enregistrer la commande",
"scheduledDate": "Scheduled date",
"scheduledDateRequired": "Scheduled date is required",
"searchAgain": "Rechercher à nouveau",
"searchMedicalSupplyOrderables": "Search medical supply orderables",
"searchResultsMatchesForTerm_one": "{{count}} résultats pour \"{{searchTerm}}\"",
Expand Down

0 comments on commit 36c35b5

Please sign in to comment.