feat[react]: Linting with eslint 9
This commit is contained in:
parent
14eab04d5b
commit
f69093b0dc
99 changed files with 1260 additions and 956 deletions
|
@ -68,9 +68,11 @@ async function withoutBody(method = 'GET', url, headers = {}, raw = false, log =
|
|||
try {
|
||||
body = raw ? await response.text() : await response.json()
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
try {
|
||||
body = await response.text()
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
body = false
|
||||
}
|
||||
}
|
||||
|
@ -125,9 +127,11 @@ async function withBody(method = 'POST', url, data, headers, raw = false, log =
|
|||
try {
|
||||
body = raw ? await response.text() : await response.json()
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
try {
|
||||
body = await response.text()
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
body = false
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue