Fix pages reorder failing for subsequent changes

This commit is contained in:
Giuseppe Criscione 2024-04-27 12:47:21 +02:00
parent 3082bfbefb
commit 085cef77a7
2 changed files with 11 additions and 11 deletions

File diff suppressed because one or more lines are too long

View File

@ -286,8 +286,8 @@ export class Pages {
const data = {
"csrf-token": ($("meta[name=csrf-token]") as HTMLMetaElement).content,
page: (element.children[event.newIndex as number] as HTMLElement).dataset.route,
before: (element.children[event.oldIndex as number] as HTMLElement).dataset.route,
page: event.item.dataset.route,
before: (event.item.nextElementSibling! as HTMLElement).dataset.route,
parent: element.dataset.parent,
};