From 31a662a83d21ad50cc8a9f6c38d2042666305bf2 Mon Sep 17 00:00:00 2001 From: NFish Date: Thu, 19 Jun 2025 15:23:02 +0800 Subject: [PATCH] fix: datasets page may redirect to apps if it still getting user info and workspace info --- web/app/(commonLayout)/datasets/Datasets.tsx | 2 +- .../datasets/NewDatasetCard.tsx | 22 +++++++++---------- web/app/(commonLayout)/datasets/layout.tsx | 18 +++++++++++++++ 3 files changed, 30 insertions(+), 12 deletions(-) diff --git a/web/app/(commonLayout)/datasets/Datasets.tsx b/web/app/(commonLayout)/datasets/Datasets.tsx index 28461e8617..2d4848e92e 100644 --- a/web/app/(commonLayout)/datasets/Datasets.tsx +++ b/web/app/(commonLayout)/datasets/Datasets.tsx @@ -81,7 +81,7 @@ const Datasets = ({ currentContainer?.removeEventListener('scroll', onScroll) onScroll.cancel() } - }, [onScroll]) + }, [containerRef, onScroll]) return (