Skip to content

Commit

Permalink
fix: properly handle line fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
martinstark committed Apr 5, 2024
1 parent e008b76 commit f7ea134
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,11 @@ export const API = {
(response) => response.json()
),
fetchProductionLine: (productionId: number, lineId: number): Promise<TLine> =>
fetch(`${API_URL}productions/${productionId}/lines/${lineId}`, {
method: "GET",
}).then((response) => response.json()),
handleFetchRequest<TLine>(
fetch(`${API_URL}productions/${productionId}/lines/${lineId}`, {
method: "GET",
})
),
offerAudioSession: ({
productionId,
lineId,
Expand Down

0 comments on commit f7ea134

Please sign in to comment.