summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
authorXavier Priour <xavier.priour@bubblyware.com>2015-10-23 03:38:38 +0200
committerXavier Priour <xavier.priour@bubblyware.com>2015-10-23 03:38:38 +0200
commit658ef5ebe112edd55eb8cf160e02a46eb2e13afd (patch)
tree91991e142582b1ae71f5369a8ef9c202908ba8c2 /models/boards.js
parent027aacb50e2baf715c89d914e34132458cf11691 (diff)
parentb3696e1e3b366770af8c41861b5cf996cdd2378a (diff)
downloadwekan-658ef5ebe112edd55eb8cf160e02a46eb2e13afd.tar.gz
wekan-658ef5ebe112edd55eb8cf160e02a46eb2e13afd.tar.bz2
wekan-658ef5ebe112edd55eb8cf160e02a46eb2e13afd.zip
Merge branch 'devel' into feature/import-board-members
Diffstat (limited to 'models/boards.js')
-rw-r--r--models/boards.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/boards.js b/models/boards.js
index 4d9fd7c0..1d365a95 100644
--- a/models/boards.js
+++ b/models/boards.js
@@ -279,7 +279,7 @@ Boards.before.insert((userId, doc) => {
// Handle labels
const colors = Boards.simpleSchema()._schema['labels.$.color'].allowedValues;
const defaultLabelsColors = _.clone(colors).splice(0, 6);
- doc.labels = _.map(defaultLabelsColors, (color) => {
+ doc.labels = defaultLabelsColors.map((color) => {
return {
color,
_id: Random.id(6),