Skip to content

Commit 69ba59c

Browse files
committed
model is no longer necessary
1 parent 6dbdaf8 commit 69ba59c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/index.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,7 @@ const SortableMixin = (options = defaultOptions) => (Component) => class extends
9797
this.initSortable(sortableComponent);
9898
}
9999
componentDidUpdate(prevProps, prevState) {
100-
const model = this.sortableOptions.model;
101-
const prevItems = prevProps[model];
102-
const currItems = this.props[model];
103-
if (prevItems !== currItems) {
100+
if (this.props.items !== prevProps.items) {
104101
this.initSortable(this.refs[refName]);
105102
}
106103
}

0 commit comments

Comments
 (0)