Commit 23328425 authored by Phil Hughes's avatar Phil Hughes

Fixed issue with cards being added twice

parent e04db427
...@@ -44,6 +44,9 @@ ...@@ -44,6 +44,9 @@
toListId = parseInt(e.to.getAttribute('data-board')), toListId = parseInt(e.to.getAttribute('data-board')),
issueId = parseInt(e.item.getAttribute('data-issue')); issueId = parseInt(e.item.getAttribute('data-issue'));
// Remove the new dom element & let vue add the element
e.item.parentNode.removeChild(e.item);
BoardsStore.moveCardToList(fromListId, toListId, issueId); BoardsStore.moveCardToList(fromListId, toListId, issueId);
} }
}, gl.boardSortableDefaultOptions); }, gl.boardSortableDefaultOptions);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment