Skip to content

Commit

Permalink
type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mgunnerud committed Dec 10, 2024
1 parent 9c84c41 commit ac7c382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/playwright/api-requests/ApiRequests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export class ApiRequests {
throw new Error(`HTTP error! Status: ${response.status}, Response Body: ${errorBody}`);
}
const data = await response.json();
return data as Promise<T>; // Return the response data
return data; // Return the response data
} catch (error) {
console.error('Error:', error);
throw error; // Rethrow the error to handle it in the test
Expand Down

0 comments on commit ac7c382

Please sign in to comment.