Skip to content
Snippets Groups Projects
Unverified Commit 5da18ba5 authored by syuilo's avatar syuilo
Browse files

Fix #2766

parent e6cc937a
No related merge requests found
......@@ -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%',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment