Skip to content

Commit 3b9e97c

Browse files
authored
fix(AnalyticalTable): Table should always call the most recent version of onColumnsReordered (#301)
1 parent 88a98ce commit 3b9e97c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/main/src/components/AnalyticalTable/hooks/useDragAndDrop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const useDragAndDrop = (props, setColumnOrder, columnOrder, resizeInfo) =
5353
})
5454
);
5555
},
56-
[columnOrder]
56+
[columnOrder, onColumnsReordered]
5757
);
5858

5959
const handleOnDragEnd = useCallback(() => {

0 commit comments

Comments
 (0)