Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
#355 ChangedIds model update
Browse files Browse the repository at this point in the history
  • Loading branch information
damianprzygodzki committed Apr 20, 2017
1 parent d128b28 commit 10a4e04
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/components/app/DocumentList.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,17 @@ class DocumentList extends Component {
dispatch(getDataByIds(
'documentView', windowType, viewId, changedIds.join()
)).then(response => {
console.log(response.data)
response.data.map(row => {
this.setState({
data: Object.assign(this.state.data, {}, {
result: this.state.data.result.map(
resultRow =>
resultRow.id === row.id ?
row : resultRow
)
})
})
})
});
}
if(fullyChanged == true){
Expand Down

0 comments on commit 10a4e04

Please sign in to comment.