mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Log error in a promise catch block
GitOrigin-RevId: 09756d52bd6351c55051a74f22f38c450af9a275
This commit is contained in:
parent
7475237170
commit
94ab78b427
2 changed files with 3 additions and 3 deletions
|
@ -12,14 +12,14 @@ export default function useProjectWideSettings() {
|
|||
|
||||
const setCompiler = useCallback(
|
||||
(newCompiler: ProjectSettings['compiler']) => {
|
||||
saveProjectSettings('compiler', newCompiler)
|
||||
saveProjectSettings('compiler', newCompiler).catch(console.error)
|
||||
},
|
||||
[saveProjectSettings]
|
||||
)
|
||||
|
||||
const setImageName = useCallback(
|
||||
(newImageName: ProjectSettings['imageName']) => {
|
||||
saveProjectSettings('imageName', newImageName)
|
||||
saveProjectSettings('imageName', newImageName).catch(console.error)
|
||||
},
|
||||
[saveProjectSettings]
|
||||
)
|
||||
|
|
|
@ -50,7 +50,7 @@ export function saveUserSettings(
|
|||
body: {
|
||||
[key]: value,
|
||||
},
|
||||
})
|
||||
}).catch(console.error)
|
||||
}
|
||||
|
||||
export const saveProjectSettings = async (
|
||||
|
|
Loading…
Reference in a new issue