diff --git a/src/SortableList.js b/src/SortableList.js index 3d3ff9f..df0b083 100644 --- a/src/SortableList.js +++ b/src/SortableList.js @@ -242,7 +242,7 @@ export default class SortableList extends Component { const style = {[ZINDEX]: 0}; const location = {x: 0, y: 0}; - if (rowsLayouts) { + if (rowsLayouts && rowsLayouts[key]) { if (horizontal) { location.x = nextX; nextX += rowsLayouts[key] ? rowsLayouts[key].width : 0;