Unverified Commit 643640e9 authored by Alejandro García Montoro's avatar Alejandro García Montoro Committed by GitHub
Browse files

MM-27167: Add undefined check (#5990) (#5993)

parent 2fc6bcac
......@@ -39,7 +39,7 @@ const prefetchQueue = memoizeResult((channels: Channel[], memberships: RelationO
return channels.reduce((acc: Record<string, string[]>, channel: Channel) => {
const channelId = channel.id;
const membership = memberships[channelId];
if (!isChannelMuted(membership)) {
if (membership && !isChannelMuted(membership)) {
if (membership.mention_count > 0) {
return {
...acc,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment