mirror of
https://github.com/tooot-app/app
synced 2025-03-16 11:30:06 +01:00
Fix err may be undefined
This commit is contained in:
parent
248238dda8
commit
d5ea813ebe
@ -15,8 +15,8 @@ const composePost = async (
|
||||
method: 'get',
|
||||
url: `statuses/${composeState.replyToStatus.id}`
|
||||
})
|
||||
} catch (err) {
|
||||
if (err.status && err.status == 404) {
|
||||
} catch (err: any) {
|
||||
if (err && err.status && err.status == 404) {
|
||||
return Promise.reject({ removeReply: true })
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user