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