diff options
Diffstat (limited to 'models/cards.js')
-rw-r--r-- | models/cards.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/models/cards.js b/models/cards.js index 5de17c6f..b6397c9e 100644 --- a/models/cards.js +++ b/models/cards.js @@ -207,7 +207,11 @@ Cards.mutations({ }, move(listId, sortIndex) { - const mutatedFields = {listId}; + const list = Lists.findOne(listId); + const mutatedFields = { + listId, + boardId: list.boardId, + }; if (sortIndex) { mutatedFields.sort = sortIndex; } |