diff --git a/src/routes/_database/timelines/fetchNotification.js b/src/routes/_database/timelines/fetchNotification.js index 93b35ab4..39888166 100644 --- a/src/routes/_database/timelines/fetchNotification.js +++ b/src/routes/_database/timelines/fetchNotification.js @@ -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 })