Skip to content

Commit b4a3497

Browse files
authored
Merge pull request #10 from uplisting/main
use `.slice` when `.toArray` is not present
2 parents 2f4b254 + ad1c4de commit b4a3497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ember-drag-drop/src/services/drag-coordinator.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default Service.extend({
138138

139139
let list = aSortable.get('sortableObjectList');
140140
if (!this.get('inPlace')) {
141-
list = A(list.toArray());
141+
list = A(list.toArray ? list.toArray() : list.slice());
142142
}
143143

144144
if (this.get('useSwap')) {

0 commit comments

Comments
 (0)