summaryrefslogtreecommitdiffstats
path: root/client/components/boards/boardsList.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/boards/boardsList.js')
-rw-r--r--client/components/boards/boardsList.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/components/boards/boardsList.js b/client/components/boards/boardsList.js
index d2d44407..c700084f 100644
--- a/client/components/boards/boardsList.js
+++ b/client/components/boards/boardsList.js
@@ -49,9 +49,9 @@ BlazeComponent.extendComponent({
stop(evt, ui) {
// To attribute the new index number, we need to get the DOM element
// of the previous and the following card -- if any.
- const prevCardDom = ui.item.prev('.js-board').get(0);
- const nextCardDom = ui.item.next('.js-board').get(0);
- const sortIndex = calculateIndex(prevCardDom, nextCardDom, 1);
+ const prevBoardDom = ui.item.prev('.js-board').get(0);
+ const nextBoardBom = ui.item.next('.js-board').get(0);
+ const sortIndex = calculateIndex(prevBoardDom, nextBoardBom, 1);
const boardDomElement = ui.item.get(0);
const board = Blaze.getData(boardDomElement);