Skip to content

Commit

Permalink
fix undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
nadbm committed Jun 5, 2018
1 parent 37960b9 commit ae0e630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/examples/OverrideEverythingSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default class OverrideEverythingSheet extends PureComponent {
grid[row][col] = {...grid[row][col], value}
})
// paste extended beyond end, so add a new row
additions.forEach(({cell, row, col, value}) => {
additions && additions.forEach(({cell, row, col, value}) => {
if (!grid[row]) {
grid[row] = [{value: ''}, {value: ''}, {value: ''}, {value: 0}]
}
Expand Down

0 comments on commit ae0e630

Please sign in to comment.