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({
|
return useQuery({
|
||||||
queryKey: metricsQueryKeys.metricsGetMetric(id!, selectedVersionNumber).queryKey,
|
...metricsQueryKeys.metricsGetMetric(id!, selectedVersionNumber),
|
||||||
enabled: !!latestVersionNumber && isFetchedInitial && !isErrorInitial,
|
enabled: !!latestVersionNumber && isFetchedInitial && !isErrorInitial,
|
||||||
queryFn: () => initialQueryFn(selectedVersionNumber),
|
queryFn: () => initialQueryFn(selectedVersionNumber),
|
||||||
select: params?.select
|
select: params?.select
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { type listMetrics } from '../buster_rest/metrics';
|
||||||
export const metricsGetMetric = (metricId: string, version_number: number | null) => {
|
export const metricsGetMetric = (metricId: string, version_number: number | null) => {
|
||||||
return queryOptions<IBusterMetric>({
|
return queryOptions<IBusterMetric>({
|
||||||
queryKey: ['metrics', 'get', metricId, version_number || 'INITIAL'] as const,
|
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]);
|
}, [autoResize]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (!props.value) adjustHeight();
|
||||||
|
}, [props.value]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<textarea
|
<textarea
|
||||||
ref={combinedRef}
|
ref={combinedRef}
|
||||||
|
|
|
@ -31,7 +31,7 @@ export const ChatContent: React.FC<{}> = React.memo(() => {
|
||||||
|
|
||||||
return (
|
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) => (
|
{chatMessageIds?.map((messageId, index) => (
|
||||||
<div key={messageId} className={autoClass}>
|
<div key={messageId} className={autoClass}>
|
||||||
<ChatMessageBlock
|
<ChatMessageBlock
|
||||||
|
|
Loading…
Reference in New Issue