fix: remove error for undefined sort_by in kanban view

This commit is contained in:
Dominik Pschenitschni 2021-12-21 13:32:04 +01:00
parent cebc060714
commit 895474e3bf
Signed by: dpschen
GPG Key ID: B257AC0149F43A77
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ export default {
computed: {
sortAlphabetically: {
get() {
return this.params.sort_by.find(sortBy => sortBy === ALPHABETICAL_SORT) !== undefined
return this.params?.sort_by?.find(sortBy => sortBy === ALPHABETICAL_SORT) !== undefined
},
set(sortAlphabetically) {
this.params.sort_by = sortAlphabetically