Skip to content

Commit

Permalink
fix: productsByNaicsCode may be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
kriscooke committed May 20, 2021
1 parent 202b538 commit e7dd429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/containers/Forms/ProductRowIdField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const ProductRowIdFieldComponent: React.FunctionComponent<Props> = (
archivedProductNames: props.query.archived.edges.map(
({node}) => node.productName
),
productIdsByNaicsCode: props.naicsCode?.productsByNaicsCode.edges.map(
productIdsByNaicsCode: props.naicsCode?.productsByNaicsCode?.edges.map(
({node}) => node.rowId
)
}),
Expand Down

0 comments on commit e7dd429

Please sign in to comment.