diff --git a/server/service/src/requisition/request_requisition/insert_program.rs b/server/service/src/requisition/request_requisition/insert_program.rs index dd37453a44..fcb2575e69 100644 --- a/server/service/src/requisition/request_requisition/insert_program.rs +++ b/server/service/src/requisition/request_requisition/insert_program.rs @@ -244,8 +244,7 @@ fn generate_internal_order_indicators( None, )? .into_iter() - .map(|s| s.store_row.and_then(|s| Some(s.id))) - .filter_map(|id| id) + .filter_map(|s| s.store_row.map(|s| s.id)) .collect::>(); println!(