mirror of https://github.com/tooot-app/app
Fix err may be undefined
This commit is contained in:
parent
248238dda8
commit
d5ea813ebe
|
@ -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 })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue