diff options
author | Lauri Ojansivu <x@xet7.org> | 2020-04-23 14:14:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-23 14:14:09 +0300 |
commit | 07c915ccf01ea3b810502586557620de1897c863 (patch) | |
tree | cf8f8365c775fbda1e0034543cf566bbb0796952 /models | |
parent | 4550e10fbeead146b5742820bd53b6846772c5f6 (diff) | |
parent | 405f176bbb04a02e9aa9be662df6412100ffb257 (diff) | |
download | wekan-07c915ccf01ea3b810502586557620de1897c863.tar.gz wekan-07c915ccf01ea3b810502586557620de1897c863.tar.bz2 wekan-07c915ccf01ea3b810502586557620de1897c863.zip |
Merge pull request #3038 from marc1006/fix
Fix getStartDayOfWeek function
Diffstat (limited to 'models')
-rw-r--r-- | models/users.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/users.js b/models/users.js index f4f4f38e..ebb14f5f 100644 --- a/models/users.js +++ b/models/users.js @@ -530,7 +530,8 @@ Users.helpers({ getStartDayOfWeek() { const profile = this.profile || {}; - return profile.startDayOfWeek || 1; + // default is 'Monday' (1) + return profile.startDayOfWeek ?? 1; }, getTemplatesBoardId() { |