mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
fix(setPosition): rawPosition never getting updated when setPosition was called (#2006)
* Fix setPosition issue The rawPositions were never updated from using setPosition, now they are. * Fix bubbling issue Also, yes. It took me 8 hours to get back home. Deal with it :D * Watch your copy paste
This commit is contained in:
parent
3871662a95
commit
f178f9ba6c
1 changed files with 1 additions and 1 deletions
|
|
@ -306,7 +306,7 @@ class Util {
|
|||
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 });
|
||||
return route.patch({ data: updatedItems, reason }).then(() => updatedItems);
|
||||
}
|
||||
|
||||
static basename(path, ext) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue