(event: DragEndEvent)
| 244 | } |
| 245 | |
| 246 | function handleSortEnd(event: DragEndEvent): void { |
| 247 | const { active, over } = event; |
| 248 | if (active.id !== over.id) { |
| 249 | const oldIndex = elements.indexOf(active.id); |
| 250 | const newIndex = elements.indexOf(over.id); |
| 251 | moveElement(oldIndex, newIndex); |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | /** Create elements for every new File resource */ |
| 256 | function handleUploadedFiles(fileSubjects: string[]) { |
nothing calls this directly
no test coverage detected