We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fe29f1 commit 16539abCopy full SHA for 16539ab
utils/api/requests.js
@@ -63,7 +63,7 @@ export const getAllPOs = async (quotedWareId, uuid, requestIdentifier, accessTok
63
// This hook is actively being contributed to the swr repo, but the semantics of the work are still being debated.
64
// See https://github.com/vercel/swr/discussions/1988 for the RFC and https://github.com/vercel/swr/pull/2047 for the PR.
65
const data = await fetcher(`quote_groups/${uuid}/quoted_wares/${quotedWareId}/purchase_orders.json`, accessToken)
66
- const configuredPOs = data.map(async (po) => {
+ const configuredPOs = data?.map(async (po) => {
67
const purchaseOrder = await fetcher(`quote_groups/${uuid}/quoted_wares/${quotedWareId}/purchase_orders/${po.id}.json`, accessToken)
68
return configurePO(purchaseOrder, requestIdentifier)
69
})
0 commit comments