Skip to content

Commit

Permalink
Merge pull request #309 from scientist-softserv/308-unable-to-view-re…
Browse files Browse the repository at this point in the history
…quests

308-unable-to-view-requests
  • Loading branch information
alishaevn authored Aug 22, 2023
2 parents 7e583c7 + 8d6ec7e commit 49274fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/api/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const getAllPOs = async (quotedWareId, uuid, requestIdentifier, accessTok
// See https://github.com/vercel/swr/discussions/1988 for the RFC and https://github.com/vercel/swr/pull/2047 for the PR.
const url = () => accessToken ? `quote_groups/${uuid}/quoted_wares/${quotedWareId}/purchase_orders.json` : null
const data = await fetcher(url(), accessToken)
const configuredPOs = data?.map(async (po) => {
const configuredPOs = data?.purchase_orders.map(async (po) => {
const purchaseOrder = await fetcher(`quote_groups/${uuid}/quoted_wares/${quotedWareId}/purchase_orders/${po.id}.json`, accessToken)
return configurePO(purchaseOrder, requestIdentifier)
})
Expand Down

1 comment on commit 49274fc

@vercel
Copy link

@vercel vercel bot commented on 49274fc Aug 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.