This commit is contained in:
syuilo 2018-09-25 20:44:26 +09:00
parent e6cc937ac2
commit 5da18ba535
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -28,7 +28,7 @@ export default Vue.extend({
}]; }];
if (this.note.userId == this.$store.state.i.id) { 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({ items.push({
icon: '%fa:thumbtack%', icon: '%fa:thumbtack%',
text: '%i18n:@unpin%', text: '%i18n:@unpin%',