Skip to content

Commit 22f1505

Browse files
committed
Bugfix if this.currentUserSettings is null
1 parent bf799fb commit 22f1505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/mixins/blacklistable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
blacklistPending: 'feathers-vuex-usersettings/isPending'
77
}),
88
isBlacklisted () {
9-
let { blacklist } = this.currentUserSettings
9+
let { blacklist } = this.currentUserSettings || {};
1010
return blacklist && blacklist.includes(this.author()._id)
1111
}
1212
},

0 commit comments

Comments
 (0)