mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 11:37:02 -04:00
Fix linting errors
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
74b0562fc8
commit
c017df0a3c
24 changed files with 35 additions and 33 deletions
|
@ -29,7 +29,7 @@ export const getUserDataForRevision = (authors: string[]): UserResponse[] => {
|
|||
.then((userData) => {
|
||||
users.push(userData)
|
||||
})
|
||||
.catch((error) => log.error(error))
|
||||
.catch((error: Error) => log.error(error))
|
||||
})
|
||||
return users
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ export const handleUpload = (file: File, editor: Editor): void => {
|
|||
.then(({ link }) => {
|
||||
insertCode(``)
|
||||
})
|
||||
.catch((error) => {
|
||||
.catch((error: Error) => {
|
||||
log.error('error while uploading file', error)
|
||||
insertCode('')
|
||||
})
|
||||
|
|
|
@ -24,7 +24,7 @@ export const useLoadNoteFromServer = (): [boolean, boolean] => {
|
|||
.then((note) => {
|
||||
setNoteDataFromServer(note)
|
||||
})
|
||||
.catch((error) => {
|
||||
.catch((error: Error) => {
|
||||
setError(true)
|
||||
log.error('Error while fetching note from server', error)
|
||||
})
|
||||
|
|
|
@ -32,7 +32,7 @@ export const UploadInput: React.FC<UploadInputProps> = ({ onLoad, acceptedFiles,
|
|||
.then(() => {
|
||||
fileInput.value = ''
|
||||
})
|
||||
.catch((error) => {
|
||||
.catch((error: Error) => {
|
||||
log.error('Error while uploading file', error)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue