mirror of https://github.com/tooot-app/app
Fix Android crash
This commit is contained in:
parent
1620963863
commit
3853066330
|
@ -37,20 +37,20 @@ const TimelineHeaderNotification = ({ queryKey, notification }: Props) => {
|
||||||
url: status.url || status.uri
|
url: status.url || status.uri
|
||||||
})
|
})
|
||||||
: null
|
: null
|
||||||
const statusOnPress = contextMenuStatus({
|
const statusOnPress = status && contextMenuStatus({
|
||||||
actions: contextMenuActions,
|
actions: contextMenuActions,
|
||||||
status: status!,
|
status: status,
|
||||||
queryKey
|
queryKey
|
||||||
})
|
})
|
||||||
const accountOnPress = contextMenuAccount({
|
const accountOnPress = status && contextMenuAccount({
|
||||||
actions: contextMenuActions,
|
actions: contextMenuActions,
|
||||||
type: 'status',
|
type: 'status',
|
||||||
queryKey,
|
queryKey,
|
||||||
id: status!.account.id
|
id: status.account.id
|
||||||
})
|
})
|
||||||
const instanceOnPress = contextMenuInstance({
|
const instanceOnPress = status && contextMenuInstance({
|
||||||
actions: contextMenuActions,
|
actions: contextMenuActions,
|
||||||
status: status!,
|
status: status,
|
||||||
queryKey
|
queryKey
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue