Skip to content

Commit

Permalink
Fix sample code in layer.md (#4425)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Mar 27, 2020
1 parent 6f4f258 commit 621bcb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-reference/layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ function updateData(index, item) {
const layer = new ScatterplotLayer({
data,
// Only update the attributes at `index``
_dataDiff: (oldData, newData) => [{startRow: index, endRow: index + 1}],
_dataDiff: (newData, oldData) => [{startRow: index, endRow: index + 1}],
...
});
deck.setProps({layers: [layer]});
Expand Down

0 comments on commit 621bcb9

Please sign in to comment.