Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(evals): correctly destructure v4 beta hook (#12214)

marliessophiedc355e4c5d9e
diff --git a/web/src/features/evals/components/inner-evaluator-form.tsx b/web/src/features/evals/components/inner-evaluator-form.tsx
index 8b598149a2..bc2fc51bde 100644
--- a/web/src/features/evals/components/inner-evaluator-form.tsx
+++ b/web/src/features/evals/components/inner-evaluator-form.tsx
@@ -208,7 +208,7 @@ const ObservationsPreview = memo(
projectId: string;
filterState: z.infer<typeof singleFilter>[];
}) => {
- const isv4Enabled = useV4Beta();
+ const { isBetaEnabled } = useV4Beta();
const dateRange = useMemo(() => {
return {
@@ -228,7 +228,7 @@ const ObservationsPreview = memo(
</div>
<div className="mb-4 flex max-h-[30dvh] w-full flex-col overflow-hidden border-b border-l border-r">
<Suspense fallback={<Skeleton className="h-[30dvh] w-full" />}>
- {isv4Enabled ? (
+ {isBetaEnabled ? (
<EventsTable
projectId={projectId}
hideControls