diff --git a/src/web/app/desktop/views/components/timeline.vue b/src/web/app/desktop/views/components/timeline.vue index 933e44825..c580e59f6 100644 --- a/src/web/app/desktop/views/components/timeline.vue +++ b/src/web/app/desktop/views/components/timeline.vue @@ -1,11 +1,11 @@ @@ -21,7 +21,7 @@ export default Vue.extend({ } }, computed: { - _posts(): any { + _posts(): any[] { return this.posts.map(post => { const date = new Date(post.created_at).getDate(); const month = new Date(post.created_at).getMonth() + 1; @@ -36,7 +36,7 @@ export default Vue.extend({ }, methods: { focus() { - (this.$refs.root as any).children[0].focus(); + (this.$el as any).children[0].focus(); } } });