diff options
author | dartcafe <github@dartcafe.de> | 2020-05-03 10:15:16 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-05-03 10:15:16 +0300 |
commit | 80fa6e94b367e8d11362b39815773698c136d5f0 (patch) | |
tree | 137d3159f2705c31c438d657fa45611a83a9535e /src/js/components/Comments/Comments.vue | |
parent | ef5e2d4b3ad28b9819d346381cc5fd226fa3d668 (diff) |
rename lists in stores
Diffstat (limited to 'src/js/components/Comments/Comments.vue')
-rw-r--r-- | src/js/components/Comments/Comments.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/js/components/Comments/Comments.vue b/src/js/components/Comments/Comments.vue index 30d35654..0f341aaf 100644 --- a/src/js/components/Comments/Comments.vue +++ b/src/js/components/Comments/Comments.vue @@ -75,7 +75,7 @@ export default { computed: { ...mapState({ - comments: state => state.comments, + comments: state => state.comments.comments, acl: state => state.acl, }), @@ -85,9 +85,9 @@ export default { sortedList() { if (this.reverse) { - return sortBy(this.comments.list, this.sort).reverse() + return sortBy(this.comments, this.sort).reverse() } else { - return sortBy(this.comments.list, this.sort) + return sortBy(this.comments, this.sort) } }, |