From 55cf1d0cdef76aef323a390056a117799490cec6 Mon Sep 17 00:00:00 2001 From: Marius Ileana Date: Sun, 14 Feb 2016 12:07:51 +0200 Subject: [PATCH] KanbanBoardContainer.js - Added two .bind(this) to cardCallBacks prop In KanbanBoardContainer.js, in render() method, two .bind(this) were missing from updateStatus and updatePosition. --- app/KanbanBoardContainer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/KanbanBoardContainer.js b/app/KanbanBoardContainer.js index e6ac7ca..97b6769 100644 --- a/app/KanbanBoardContainer.js +++ b/app/KanbanBoardContainer.js @@ -243,8 +243,8 @@ class KanbanBoardContainer extends Component { add: this.addTask.bind(this) }} cardCallbacks={{ - updateStatus: this.updateCardStatus, - updatePosition: this.updateCardPosition, + updateStatus: this.updateCardStatus.bind(this), + updatePosition: this.updateCardPosition.bind(this), persistCardDrag: this.persistCardDrag.bind(this) }} />