diff --git a/src/components/datatable/DataTable.js b/src/components/datatable/DataTable.js index af4858a5..c38ab927 100644 --- a/src/components/datatable/DataTable.js +++ b/src/components/datatable/DataTable.js @@ -116,7 +116,7 @@ function DataTable({ useEffect(() => { scrollToIndex(lastClickedDataIndex); - }, [columnsShow, lastClickedDataIndex, preview, scrollToIndex]); + }, [columnsShow, preview, scrollToIndex]); const scrollToIndex = useCallback( (index) => {