From f4c2d6dfa2e11f99742bf817dd87d68fc234374c Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Sat, 9 Sep 2017 15:55:26 -0500 Subject: [PATCH] fix a thing (#1921) --- src/util/Util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/Util.js b/src/util/Util.js index fe197e74f..facfd779c 100644 --- a/src/util/Util.js +++ b/src/util/Util.js @@ -302,11 +302,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 }); } }