From 5da18ba535244ad4d4b4498c39e495d4428b5dff Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Tue, 25 Sep 2018 20:44:26 +0900
Subject: [PATCH] Fix #2766

---
 src/client/app/common/views/components/note-menu.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/client/app/common/views/components/note-menu.vue b/src/client/app/common/views/components/note-menu.vue
index a3e80e33de..c8ed1225cc 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%',