mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 16:00:13 +01:00
Check for null and undefined in board defaults
This commit is contained in:
parent
04745f0c2f
commit
c9f70cf382
1 changed files with 2 additions and 2 deletions
|
|
@ -297,7 +297,7 @@ Boards.helpers({
|
||||||
// A board alwasy has another board where it deposits subtasks of thasks
|
// A board alwasy has another board where it deposits subtasks of thasks
|
||||||
// that belong to itself.
|
// that belong to itself.
|
||||||
getDefaultSubtasksBoardId() {
|
getDefaultSubtasksBoardId() {
|
||||||
if (this.subtasksDefaultBoardId === null) {
|
if ((this.subtasksDefaultBoardId === null) || (this.subtasksDefaultBoardId === undefined)) {
|
||||||
this.subtasksDefaultBoardId = Boards.insert({
|
this.subtasksDefaultBoardId = Boards.insert({
|
||||||
title: `^${this.title}^`,
|
title: `^${this.title}^`,
|
||||||
permission: this.permission,
|
permission: this.permission,
|
||||||
|
|
@ -322,7 +322,7 @@ Boards.helpers({
|
||||||
},
|
},
|
||||||
|
|
||||||
getDefaultSubtasksListId() {
|
getDefaultSubtasksListId() {
|
||||||
if (this.subtasksDefaultListId === null) {
|
if ((this.subtasksDefaultListId === null) || (this.subtasksDefaultListId === undefined)) {
|
||||||
this.subtasksDefaultListId = Lists.insert({
|
this.subtasksDefaultListId = Lists.insert({
|
||||||
title: TAPi18n.__('queue'),
|
title: TAPi18n.__('queue'),
|
||||||
boardId: this._id,
|
boardId: this._id,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue