Skip to content
Snippets Groups Projects
Commit a3cefaa0 authored by Albin Henriksson's avatar Albin Henriksson
Browse files

Fix bug introduced in last commit

parent a1155b8e
No related branches found
No related tags found
1 merge request!132Resolve "Fix move slides on backend"
This commit is part of merge request !132. Comments created here will be created in the context of that merge request.
......@@ -122,7 +122,7 @@ const PresentationEditorPage: React.FC = () => {
return
}
const draggedIndex = result.source.index
const draggedSlideId = sortedSlides.find((slide) => slide.order === draggedIndex)?.id
const draggedSlideId = sortedSlides[draggedIndex].id
const slidesCopy = [...sortedSlides]
const [removed] = slidesCopy.splice(draggedIndex, 1)
slidesCopy.splice(result.destination.index, 0, removed)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment