feat(app): lint & beautify
This commit is contained in:
parent
32f26bb4e8
commit
ee6e197ec0
6 changed files with 66 additions and 66 deletions
|
|
@ -187,16 +187,13 @@ const Page = () => {
|
|||
[key]: value,
|
||||
} as SettingsType;
|
||||
|
||||
const response = await fetch(
|
||||
`/api/config`,
|
||||
{
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify(updatedConfig),
|
||||
const response = await fetch(`/api/config`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
);
|
||||
body: JSON.stringify(updatedConfig),
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error('Failed to update config');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue