From c94e4afb6192390cb68bbacb0428ce7b3152ce16 Mon Sep 17 00:00:00 2001 From: Mohamed Khelif Date: Wed, 28 Feb 2024 14:42:52 -0500 Subject: [PATCH] Update scroll alignment in TaskQueueTable --- src/pages/taskQueue/TaskQueueTable/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/taskQueue/TaskQueueTable/index.tsx b/src/pages/taskQueue/TaskQueueTable/index.tsx index 47c050832a..f6e9859ea3 100644 --- a/src/pages/taskQueue/TaskQueueTable/index.tsx +++ b/src/pages/taskQueue/TaskQueueTable/index.tsx @@ -51,11 +51,11 @@ const TaskQueueTable: React.FC = ({ if (taskId !== undefined && !performedInitialScroll.current) { const i = taskQueue.findIndex((t) => t.id === taskId); setSelectedRowIndexes([i]); - table.scrollToIndex(i, { align: "center" }); + table.scrollToIndex(i, { align: "start" }); setTimeout(() => { performedInitialScroll.current = true; - table.scrollToIndex(i, { align: "center" }); + table.scrollToIndex(i, { align: "start" }); }, 200); } // eslint-disable-next-line react-hooks/exhaustive-deps