Browse Source

Use card id from component instead of global state

- was a TODO in the comments
Martin Filser 3 năm trước cách đây
mục cha
commit
73ff4c7966

+ 1 - 3
client/components/cards/cardDetails.js

@@ -801,9 +801,7 @@ Template.editCardAssignerForm.events({
 
 
 Template.moveCardPopup.events({
 Template.moveCardPopup.events({
   'click .js-done'() {
   '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];
     const bSelect = $('.js-select-boards')[0];
     let boardId;
     let boardId;
     // if we are a worker, we won't have a board select so we just use the
     // if we are a worker, we won't have a board select so we just use the