2
0
Эх сурвалжийг харах

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.
Lauri Ojansivu 4 жил өмнө
parent
commit
481404e8d7
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      models/boards.js

+ 3 - 0
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': {
       /**