Skip to content

Commit

Permalink
fix: ensure product units are part of the initialized mandatory products
Browse files Browse the repository at this point in the history
  • Loading branch information
kriscooke committed May 20, 2021
1 parent 86ca822 commit d24bc58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/containers/Forms/ProductsArrayField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const ProductsArrayFieldComponent: React.FunctionComponent<Props> = (
...productsToInitialize.map((edge) => {
return {
...edge.node.productByProductId,
productUnits: edge.node.productByProductId.units,
productRowId: edge.node.productByProductId.rowId,
isMandatory: true
};
Expand Down

0 comments on commit d24bc58

Please sign in to comment.