mirror of
https://github.com/wekan/wekan.git
synced 2025-12-30 22:28:49 +01:00
Use card id from component instead of global state
- was a TODO in the comments
This commit is contained in:
parent
01d8058a3f
commit
73ff4c7966
1 changed files with 1 additions and 3 deletions
|
|
@ -801,9 +801,7 @@ Template.editCardAssignerForm.events({
|
|||
|
||||
Template.moveCardPopup.events({
|
||||
'click .js-done'() {
|
||||
// XXX We should *not* get the currentCard from the global state, but
|
||||
// instead from a “component” state.
|
||||
const card = Utils.getCurrentCard();
|
||||
const card = Cards.findOne(this._id);
|
||||
const bSelect = $('.js-select-boards')[0];
|
||||
let boardId;
|
||||
// if we are a worker, we won't have a board select so we just use the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue