mirror of https://github.com/buster-so/buster.git
change query params
This commit is contained in:
parent
7f2ae891fa
commit
699558447c
|
@ -67,7 +67,7 @@ export const useGetMetric = <TData = IBusterMetric>(
|
|||
});
|
||||
|
||||
return useQuery({
|
||||
queryKey: metricsQueryKeys.metricsGetMetric(id!, selectedVersionNumber).queryKey,
|
||||
...metricsQueryKeys.metricsGetMetric(id!, selectedVersionNumber),
|
||||
enabled: !!latestVersionNumber && isFetchedInitial && !isErrorInitial,
|
||||
queryFn: () => initialQueryFn(selectedVersionNumber),
|
||||
select: params?.select
|
||||
|
|
|
@ -9,7 +9,7 @@ import { type listMetrics } from '../buster_rest/metrics';
|
|||
export const metricsGetMetric = (metricId: string, version_number: number | null) => {
|
||||
return queryOptions<IBusterMetric>({
|
||||
queryKey: ['metrics', 'get', metricId, version_number || 'INITIAL'] as const,
|
||||
staleTime: 30 * 60 * 1000
|
||||
staleTime: 60 * 1000
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
@ -155,6 +155,10 @@ export const InputTextArea = React.forwardRef<HTMLTextAreaElement, InputTextArea
|
|||
};
|
||||
}, [autoResize]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!props.value) adjustHeight();
|
||||
}, [props.value]);
|
||||
|
||||
return (
|
||||
<textarea
|
||||
ref={combinedRef}
|
||||
|
|
|
@ -31,7 +31,7 @@ export const ChatContent: React.FC<{}> = React.memo(() => {
|
|||
|
||||
return (
|
||||
<>
|
||||
<div className="mb-40 flex h-full w-full flex-col">
|
||||
<div className="mb-48 flex h-full w-full flex-col">
|
||||
{chatMessageIds?.map((messageId, index) => (
|
||||
<div key={messageId} className={autoClass}>
|
||||
<ChatMessageBlock
|
||||
|
|
Loading…
Reference in New Issue