Skip to content

Commit

Permalink
Fix error when r is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Jan 11, 2024
1 parent 4b9ff0c commit 500f877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/timeline-utils.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});
Expand Down

0 comments on commit 500f877

Please sign in to comment.