From 4c9dfbf8362f3113199ab1896b82991003314f2b Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Thu, 17 Apr 2025 11:54:18 -0600 Subject: [PATCH] update scroll to bottom --- web/src/context/RoutePrefetcher.tsx | 1 + .../ChatLayout/ChatContainer/ChatContent/ChatContent.tsx | 2 +- .../MetricContainerHeaderButtons/MetricThreeDotMenu.tsx | 9 ++++++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/web/src/context/RoutePrefetcher.tsx b/web/src/context/RoutePrefetcher.tsx index 818f84322..02695aecf 100644 --- a/web/src/context/RoutePrefetcher.tsx +++ b/web/src/context/RoutePrefetcher.tsx @@ -13,6 +13,7 @@ const PRIORITY_ROUTES = [ BusterRoutes.APP_CHAT_ID, BusterRoutes.APP_CHAT_ID_METRIC_ID_CHART, BusterRoutes.APP_HOME, + BusterRoutes.APP_LOGS, BusterRoutes.APP_DATASETS, BusterRoutes.SETTINGS, BusterRoutes.APP_DASHBOARD_ID, diff --git a/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatContent.tsx b/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatContent.tsx index a08de7280..9c2efb37a 100644 --- a/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatContent.tsx +++ b/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatContent.tsx @@ -31,7 +31,7 @@ export const ChatContent: React.FC<{}> = React.memo(() => { return ( <> -
+
{chatMessageIds?.map((messageId, index) => (
{ }; export const useShareMenuSelectMenu = ({ metricId }: { metricId: string }) => { - const { data: metric } = useGetMetric({ id: metricId }, { select: getShareAssetConfig }); - const isOwner = getIsOwner(metric?.permission); + const { data: shareAssetConfig } = useGetMetric( + { id: metricId }, + { select: getShareAssetConfig } + ); + const isOwner = getIsOwner(shareAssetConfig?.permission); return useMemo( () => ({ @@ -501,7 +504,7 @@ export const useShareMenuSelectMenu = ({ metricId }: { metricId: string }) => { ? [