diff options
Diffstat (limited to 'models/boards.js')
-rw-r--r-- | models/boards.js | 2 |
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), |