Skip to content

Commit

Permalink
updated the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel-C-Johnson committed Dec 1, 2023
1 parent 3f50bb6 commit 7371726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/datatable/DataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function DataTable({

useEffect(() => {
scrollToIndex(lastClickedDataIndex);
}, [columnsShow, lastClickedDataIndex, preview, scrollToIndex]);
}, [columnsShow, preview, scrollToIndex]);

const scrollToIndex = useCallback(
(index) => {
Expand Down

0 comments on commit 7371726

Please sign in to comment.