Skip to content

Commit

Permalink
restore ability to look at individual requests again.
Browse files Browse the repository at this point in the history
this change is necessary because of the change in PurchaseOrdersController#index in commit 71077c6 of the api.
  • Loading branch information
alishaevn committed Aug 22, 2023
1 parent 7e583c7 commit 8d6ec7e
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

0 comments on commit 8d6ec7e

Please sign in to comment.