From 500f877d4b9ebe180017a33a97c8485688d2ebe2 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 11 Jan 2024 10:44:37 +0800 Subject: [PATCH] Fix error when r is undefined --- src/utils/timeline-utils.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/timeline-utils.jsx b/src/utils/timeline-utils.jsx index 128b4904..f15dff8d 100644 --- a/src/utils/timeline-utils.jsx +++ b/src/utils/timeline-utils.jsx @@ -219,7 +219,7 @@ export async function assignFollowedTags(items, instance) { statusWithFollowedTags.forEach((s) => { const { item, sKey, followedTags } = s; const r = relationships[item.account.id]; - if (!r.following) { + if (r && !r.following) { statusFollowedTags[sKey] = followedTags; } });