mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-14 09:25:47 +01:00
🚨 Fix compilation for types
This commit is contained in:
@@ -66,7 +66,7 @@ export function DndList({ data }: DndListProps) {
|
||||
return (
|
||||
<DragDropContext
|
||||
onDragEnd={({ destination, source }) =>
|
||||
handlers.reorder({ from: source.index, to: destination.index })
|
||||
handlers.reorder({ from: source.index, to: (destination && destination.index) ?? -1 })
|
||||
}
|
||||
>
|
||||
<Droppable droppableId="dnd-list" direction="vertical">
|
||||
|
||||
Reference in New Issue
Block a user