update scroll to bottom

This commit is contained in:
Nate Kelley 2025-04-17 11:54:18 -06:00
parent dea22c12b6
commit 4c9dfbf836
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
3 changed files with 8 additions and 4 deletions

View File

@ -13,6 +13,7 @@ const PRIORITY_ROUTES = [
BusterRoutes.APP_CHAT_ID, BusterRoutes.APP_CHAT_ID,
BusterRoutes.APP_CHAT_ID_METRIC_ID_CHART, BusterRoutes.APP_CHAT_ID_METRIC_ID_CHART,
BusterRoutes.APP_HOME, BusterRoutes.APP_HOME,
BusterRoutes.APP_LOGS,
BusterRoutes.APP_DATASETS, BusterRoutes.APP_DATASETS,
BusterRoutes.SETTINGS, BusterRoutes.SETTINGS,
BusterRoutes.APP_DASHBOARD_ID, BusterRoutes.APP_DASHBOARD_ID,

View File

@ -31,7 +31,7 @@ export const ChatContent: React.FC<{}> = React.memo(() => {
return ( return (
<> <>
<div className="mb-40 flex h-full w-full flex-col overflow-hidden"> <div className="mb-40 flex h-full w-full flex-col">
{chatMessageIds?.map((messageId, index) => ( {chatMessageIds?.map((messageId, index) => (
<div key={messageId} className={autoClass}> <div key={messageId} className={autoClass}>
<ChatMessageBlock <ChatMessageBlock

View File

@ -488,8 +488,11 @@ const useRenameMetricSelectMenu = ({ metricId }: { metricId: string }) => {
}; };
export const useShareMenuSelectMenu = ({ metricId }: { metricId: string }) => { export const useShareMenuSelectMenu = ({ metricId }: { metricId: string }) => {
const { data: metric } = useGetMetric({ id: metricId }, { select: getShareAssetConfig }); const { data: shareAssetConfig } = useGetMetric(
const isOwner = getIsOwner(metric?.permission); { id: metricId },
{ select: getShareAssetConfig }
);
const isOwner = getIsOwner(shareAssetConfig?.permission);
return useMemo( return useMemo(
() => ({ () => ({
@ -501,7 +504,7 @@ export const useShareMenuSelectMenu = ({ metricId }: { metricId: string }) => {
? [ ? [
<ShareMenuContent <ShareMenuContent
key={metricId} key={metricId}
shareAssetConfig={metric!} shareAssetConfig={shareAssetConfig!}
assetId={metricId} assetId={metricId}
assetType={ShareAssetType.METRIC} assetType={ShareAssetType.METRIC}
/> />