Skip to content

Commit 535e3b8

Browse files
committed
dont filter out blocked if blocked is undefined
1 parent f47ee28 commit 535e3b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frontend/src/components/app/recommendations/Recommendations.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ export default {
150150
filterOutBlockedUsers(recommendations) {
151151
let i = recommendations.length;
152152
const { blocks } = this.$store.getters.getLoggedInUser;
153+
if (!blocks) {
154+
return recommendations;
155+
}
153156
let blockedIds = [];
154157
for (let j = 0; j < blocks.length; j += 1) {
155158
blockedIds.push(blocks[j].blocked_id);

0 commit comments

Comments
 (0)