diff --git a/frontend/src/lib/lemon-ui/VerticalNestedDND/VerticalNestedDND.tsx b/frontend/src/lib/lemon-ui/VerticalNestedDND/VerticalNestedDND.tsx index 77d6e0c4bf7..6bdbb97107d 100644 --- a/frontend/src/lib/lemon-ui/VerticalNestedDND/VerticalNestedDND.tsx +++ b/frontend/src/lib/lemon-ui/VerticalNestedDND/VerticalNestedDND.tsx @@ -101,6 +101,7 @@ export function VerticalNestedDND { if (activeId && activeId in items) { return closestCenter({ @@ -108,8 +109,6 @@ export function VerticalNestedDND container.id in items), }) } - - // Start by finding any intersecting droppable const pointerIntersections = pointerWithin(args) const intersections = pointerIntersections.length > 0 @@ -122,9 +121,7 @@ export function VerticalNestedDND 0) { - // Return the closest droppable within that container overId = closestCenter({ ...args, droppableContainers: args.droppableContainers.filter( @@ -141,15 +138,10 @@ export function VerticalNestedDND @@ -406,9 +398,9 @@ export function VerticalNestedDND
{renderAddContainerItem ? ( - renderAddContainerItem({ onAddContainer: handleAddColumn }) + renderAddContainerItem({ onAddContainer: handleAddContainerItem }) ) : ( - + Add container )} @@ -453,7 +445,6 @@ export function VerticalNestedDND { @@ -506,7 +497,7 @@ export function VerticalNestedDND { @@ -626,7 +617,6 @@ function useMountStatus(): boolean { function DroppableContainer>({ children, - columns = 1, disabled, items, style, @@ -637,7 +627,7 @@ function DroppableContainer item.id === over.id) - : false return ( @@ -672,16 +656,10 @@ function DroppableContainer> { children: React.ReactNode - columns?: number containerItemId: UniqueIdentifier style?: React.CSSProperties - horizontal?: boolean - hover?: boolean handleProps?: React.HTMLAttributes - scrollable?: boolean - shadow?: boolean placeholder?: boolean - unstyled?: boolean onClick?(): void onRemove?(): void onAddChild(containerId: UniqueIdentifier): void @@ -701,17 +679,12 @@ export const Container = forwardRef(function Container_