mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Fix getStartDayOfWeek function
In case profile.startDayOfWeek is 0 it's evaluated to false and 1 is returned. Let's fix this by differentiating between undefined and an actual value.
This commit is contained in:
parent
4550e10fbe
commit
405f176bbb
1 changed files with 2 additions and 1 deletions
|
@ -530,7 +530,8 @@ Users.helpers({
|
|||
|
||||
getStartDayOfWeek() {
|
||||
const profile = this.profile || {};
|
||||
return profile.startDayOfWeek || 1;
|
||||
// default is 'Monday' (1)
|
||||
return profile.startDayOfWeek ?? 1;
|
||||
},
|
||||
|
||||
getTemplatesBoardId() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue