Webpack build for branch master: f4c2d6dfa2

This commit is contained in:
Travis CI 2017-09-09 20:57:15 +00:00
parent 09a4808423
commit bfd3de9eec
2 changed files with 3 additions and 3 deletions

View file

@ -3371,11 +3371,11 @@ class Util {
.sort((a, b) => a.rawPosition - b.rawPosition || Long.fromString(a.id).sub(Long.fromString(b.id)).toNumber());
}
static setPosition(item, position, relative, sorted, route, handle, reason) {
static setPosition(item, position, relative, sorted, route, reason) {
let updatedItems = sorted.array();
Util.moveElementInArray(updatedItems, item, position, relative);
updatedItems = updatedItems.map((r, i) => ({ id: r.id, position: i }));
return route.patch({ data: updatedItems, reason }).then(handle || (x => x));
return route.patch({ data: updatedItems, reason });
}
}

File diff suppressed because one or more lines are too long