From 7371726a119df278628d373fa3665d72943c4e91 Mon Sep 17 00:00:00 2001 From: Joel C Johnson Date: Fri, 1 Dec 2023 12:37:18 +0530 Subject: [PATCH] updated the code --- src/components/datatable/DataTable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {