mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix err may be undefined
This commit is contained in:
@ -15,8 +15,8 @@ const composePost = async (
|
|||||||
method: 'get',
|
method: 'get',
|
||||||
url: `statuses/${composeState.replyToStatus.id}`
|
url: `statuses/${composeState.replyToStatus.id}`
|
||||||
})
|
})
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
if (err.status && err.status == 404) {
|
if (err && err.status && err.status == 404) {
|
||||||
return Promise.reject({ removeReply: true })
|
return Promise.reject({ removeReply: true })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user