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', | ||||
|         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 }) | ||||
|       } | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user