CP: Editor crashes when sorting slide

Description

Acceptance Criteria

  1. It should not matter how many times or how quickly you press the sort buttons, the Course Presentation Editor must not crash.

How to reproduce

  1. Go to https://h5p.org/node/221115/edit with chrome (or use the attached file)

  2. Wait for the editor to load, click on the first slide in the slide line thing

  3. Sort the first slide all the way to the right and then all the way back again with the console(F12) open

  4. You'll see a JS error when sorting it back to the left again. When this happens the content is broken.

  5. DO NOT SAVE THE CONTENT (It will completely break the content and make it harder to reproduce the problem)

Environment

None

Acceptance Criteria

None

Status

Assignee

Thomas Marstrander

Reporter

Frode Petterson

Labels

Funding

None

Code reviewer

Frode Petterson

Released

None

Time tracking

0m

Fix versions

Sprint

None

Priority

Highest
Configure