summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2020-04-23 14:14:09 +0300
committerGitHub <noreply@github.com>2020-04-23 14:14:09 +0300
commit07c915ccf01ea3b810502586557620de1897c863 (patch)
treecf8f8365c775fbda1e0034543cf566bbb0796952
parent4550e10fbeead146b5742820bd53b6846772c5f6 (diff)
parent405f176bbb04a02e9aa9be662df6412100ffb257 (diff)
downloadwekan-07c915ccf01ea3b810502586557620de1897c863.tar.gz
wekan-07c915ccf01ea3b810502586557620de1897c863.tar.bz2
wekan-07c915ccf01ea3b810502586557620de1897c863.zip
Merge pull request #3038 from marc1006/fix
Fix getStartDayOfWeek function
-rw-r--r--models/users.js3
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() {