We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b3b9ef commit cccca70Copy full SHA for cccca70
src/SortableList.js
@@ -111,21 +111,13 @@ export default class SortableList extends Component {
111
});
112
113
114
- if (Object.keys(nextData).length > Object.keys(data).length) {
115
- this.setState({
116
- animated: false,
117
- data: nextData,
118
- containerLayout: null,
119
- rowsLayouts: null,
120
- order: nextOrder
121
- });
122
- } else {
123
124
125
126
127
- }
128
-
+ this.setState({
+ animated: false,
+ data: nextData,
+ containerLayout: null,
+ rowsLayouts: null,
+ order: nextOrder
+ });
129
} else if (order && nextOrder && !shallowEqual(order, nextOrder)) {
130
this.setState({order: nextOrder});
131
}
0 commit comments