Fixed Duplicate board.

Thanks to Ben0it-T and xet7 !

Fixes #4260
This commit is contained in:
Lauri Ojansivu 2021-12-26 15:24:16 +02:00
parent db180fa43e
commit 67687110bb
3 changed files with 3 additions and 0 deletions

View file

@ -241,6 +241,7 @@ BlazeComponent.extendComponent({
this.setError(err.error); this.setError(err.error);
} else { } else {
Session.set('fromBoard', null); Session.set('fromBoard', null);
subManager.subscribe('board', res, false);
Utils.goBoardId(res); Utils.goBoardId(res);
} }
}, },

View file

@ -714,6 +714,7 @@ BlazeComponent.extendComponent({
}, },
(err, data) => { (err, data) => {
_id = data; _id = data;
subManager.subscribe('board', _id, false);
}, },
); );
} }

View file

@ -623,6 +623,7 @@ Boards.helpers({
rule.triggerId = triggersMap[rule.triggerId]; rule.triggerId = triggersMap[rule.triggerId];
Rules.insert(rule); Rules.insert(rule);
}); });
return _id;
}, },
/** /**
* Return a unique title based on the current title * Return a unique title based on the current title