chore: simplify usage of mapState
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2021-10-26 21:11:31 +02:00
parent 505e008895
commit 14c5efee92
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -43,8 +43,8 @@ export default {
caldavUrl() {
return `${this.$store.getters['config/apiBase']}/dav/principals/${this.userInfo.username}/`
},
...mapState('config', ['caldavEnabled']),
...mapState({
caldavEnabled: state => state.config.caldavEnabled,
userInfo: state => state.auth.info,
}),
},