Skip to content

Commit 9948501

Browse files
committed
Merge branch 'patch-4' of https://github.com/thorjarhun/react-trello into thorjarhun-patch-4
2 parents 87f93a3 + 17510d2 commit 9948501

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/components/Lane.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class Lane extends Component {
1818
state = {
1919
loading: false,
2020
currentPage: this.props.currentPage,
21-
cards: this.props.cards,
2221
addCardMode: false
2322
}
2423

@@ -63,7 +62,6 @@ class Lane extends Component {
6362
componentWillReceiveProps(nextProps) {
6463
if (!isEqual(this.props.cards, nextProps.cards)) {
6564
this.setState({
66-
cards: nextProps.cards,
6765
currentPage: nextProps.currentPage
6866
})
6967
}
@@ -123,10 +121,10 @@ class Lane extends Component {
123121
}
124122

125123
renderDragContainer = (isDraggingOver) => {
126-
const {laneSortFunction, editable, hideCardDeleteIcon, tagStyle, cardStyle, draggable} = this.props
124+
const {laneSortFunction, editable, hideCardDeleteIcon, tagStyle, cardStyle, draggable, cards} = this.props
127125
const {addCardMode} = this.state
128126

129-
const cardList = this.sortCards(this.state.cards, laneSortFunction).map((card, idx) => (
127+
const cardList = this.sortCards(cards, laneSortFunction).map((card, idx) => (
130128
<Card
131129
key={card.id}
132130
index={idx}

0 commit comments

Comments
 (0)