Skip to content

Commit 4b4a0a4

Browse files
committed
fix: type issue
1 parent e7b2f12 commit 4b4a0a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/drag/DragAndDropProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export const DragAndDropProvider: React.FC<React.PropsWithChildren> = ({
190190
});
191191

192192
const onStartDraggingItems = useCallback(
193-
(items, treeId) => {
193+
(items: TreeItem[], treeId: string) => {
194194
const treeViableDragPositions = buildMapForTrees(
195195
environment.treeIds,
196196
treeId => getViableDragPositions(treeId, items)

packages/core/src/drag/useDraggingPosition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export const useDraggingPosition = () => {
143143
);
144144

145145
const initiateDraggingPosition = useStableHandler(
146-
(items: TreeItem[], treeId: string) => {
146+
(treeId: string, items: TreeItem[]) => {
147147
setDraggingItems(items);
148148
dragCode.current = 'initial';
149149
itemHeight.current = computeItemHeight(treeId);

0 commit comments

Comments
 (0)