Now new boards do not have any labels added by default.

Thanks to tedkoch and xet7 !

Related https://github.com/wekan/wekan/discussions/3835#discussioncomment-836223 Issue 7.
reviewable/pr3849/r1
Lauri Ojansivu 4 years ago
parent 48737dcd01
commit 481404e8d7
  1. 3
      models/boards.js

@ -109,6 +109,8 @@ Boards.attachSchema(
* List of labels attached to a board
*/
type: [Object],
optional: true,
/* Commented out, so does not create labels to new boards.
// eslint-disable-next-line consistent-return
autoValue() {
if (this.isInsert && !this.isSet) {
@ -122,6 +124,7 @@ Boards.attachSchema(
}));
}
},
*/
},
'labels.$._id': {
/**

Loading…
Cancel
Save