diff --git a/src/routes/Alerts.svelte b/src/routes/Alerts.svelte index 203a5d2a..0f34654a 100644 --- a/src/routes/Alerts.svelte +++ b/src/routes/Alerts.svelte @@ -26,7 +26,7 @@ // is really upstream of this, but it's an easy fix const events = user .applyMutes(database.alerts.all()) - .filter(e => any(k => e[k].length > 0, ["replies", "likedBy", "zappedBy"]) || e.isMention) + .filter(e => any(k => e[k]?.length > 0, ["replies", "likedBy", "zappedBy"]) || e.isMention) notes = sortBy(e => -e.created_at, events).slice(0, limit) })