Skip to content

Commit

Permalink
Update src/layouts/rest-api/endpoint/playground/try/Req.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Cosmo Shin (신의하) <[email protected]>
  • Loading branch information
CirnoV and XiNiHa authored Apr 16, 2024
1 parent 6096309 commit 781a886
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/layouts/rest-api/endpoint/playground/try/Req.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,9 @@ function createHarRequest(
headers: Object.entries(headers).map(([name, value]) => ({ name, value })),
cookies: [],
httpVersion: "HTTP/1.1",
queryString: Object.entries(reqQuery as object).map(([name, value]) => ({
name,
value: value as string,
})),
queryString: Object

Check failure on line 248 in src/layouts/rest-api/endpoint/playground/try/Req.tsx

View workflow job for this annotation

GitHub Actions / Lint code

Replace `⏎······.entries(reqQuery·as·Record<string,·string>)` with `.entries(reqQuery·as·Record<string,·string>).map(`
.entries(reqQuery as Record<string, string>)
.map(([name, value]) => ({ name, value })),

Check failure on line 250 in src/layouts/rest-api/endpoint/playground/try/Req.tsx

View workflow job for this annotation

GitHub Actions / Lint code

Replace `.map(([name,·value])·=>·({·name,·value·})` with `([name,·value])·=>·({·name,·value·}),⏎····`
postData: {
mimeType: "application/json",
text: JSON.stringify(reqBody),
Expand Down

0 comments on commit 781a886

Please sign in to comment.