File tree Expand file tree Collapse file tree 1 file changed +23
-24
lines changed
src/pages/Facility/services/inventory/externalSupply/deliveryOrder Expand file tree Collapse file tree 1 file changed +23
-24
lines changed Original file line number Diff line number Diff line change @@ -940,30 +940,29 @@ export function AddSupplyDeliveryForm({
940940 < h4 > { t ( "add_items_to_delivery" ) } </ h4 >
941941 < p > { t ( "add_items_to_delivery_description" ) } </ p >
942942 < div className = "flex flex-row gap-2 items-center mt-2" >
943- { qParams . supplyOrder
944- ? supplyRequests ?. results ?. length &&
945- supplyRequests ?. results ?. length > 0 && (
946- < >
947- < Button
948- type = "button"
949- variant = "outline_primary"
950- onClick = { loadFromSupplyRequests }
951- >
952- { t ( "load_from_order" ) } ({ supplyRequests ?. count } { " " }
953- { t ( "items" ) }
954- )
955- < ShortcutBadge actionId = "load-from-order" />
956- </ Button >
957- < p > - { t ( "or" ) } -</ p >
958- </ >
959- )
960- : requestOrders ?. results &&
961- requestOrders . results . length > 0 && (
962- < >
963- { renderRequestOrderSelector ( ) }
964- < p > - { t ( "or" ) } -</ p >
965- </ >
966- ) }
943+ { qParams . supplyOrder ? (
944+ supplyRequests ?. results ?. length &&
945+ supplyRequests ?. results ?. length > 0 && (
946+ < >
947+ < Button
948+ type = "button"
949+ variant = "outline_primary"
950+ onClick = { loadFromSupplyRequests }
951+ >
952+ { t ( "load_from_order" ) } ({ supplyRequests ?. count } { " " }
953+ { t ( "items" ) }
954+ )
955+ < ShortcutBadge actionId = "load-from-order" />
956+ </ Button >
957+ < p > - { t ( "or" ) } -</ p >
958+ </ >
959+ )
960+ ) : (
961+ < >
962+ { renderRequestOrderSelector ( ) }
963+ < p > - { t ( "or" ) } -</ p >
964+ </ >
965+ ) }
967966 < Button
968967 type = "button"
969968 variant = "outline_primary"
You can’t perform that action at this time.
0 commit comments