diff --git a/src/client/app/common/views/components/note-menu.vue b/src/client/app/common/views/components/note-menu.vue index a3e80e33d..c8ed1225c 100644 --- a/src/client/app/common/views/components/note-menu.vue +++ b/src/client/app/common/views/components/note-menu.vue @@ -28,7 +28,7 @@ export default Vue.extend({ }]; if (this.note.userId == this.$store.state.i.id) { - if (this.$store.state.i.pinnedNoteIds.includes(this.note.id)) { + if ((this.$store.state.i.pinnedNoteIds || []).includes(this.note.id)) { items.push({ icon: '%fa:thumbtack%', text: '%i18n:@unpin%',