kopia lustrzana https://github.com/nolanlawson/pinafore
fix: fix for when notification is undefined (#2093)
rodzic
fdf4110dad
commit
0df4b724ca
|
@ -6,6 +6,9 @@ export function fetchNotification (notificationsStore, statusesStore, accountsSt
|
|||
notificationsStore.get(id).onsuccess = e => {
|
||||
const notification = e.target.result
|
||||
callback(notification)
|
||||
if (!notification) {
|
||||
return
|
||||
}
|
||||
fetchAccount(accountsStore, notification[ACCOUNT_ID], account => {
|
||||
notification.account = account
|
||||
})
|
||||
|
|
Ładowanie…
Reference in New Issue