Skip to content

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

fix(annotation-queues): remove unnecessary refetchOnMount option and ensure current item type is defined (#8199)

marliessophie14831902efe1
diff --git a/web/src/features/annotation-queues/components/AnnotationQueuesItem.tsx b/web/src/features/annotation-queues/components/AnnotationQueuesItem.tsx
index bab5b74c78..36d6447ff5 100644
--- a/web/src/features/annotation-queues/components/AnnotationQueuesItem.tsx
+++ b/web/src/features/annotation-queues/components/AnnotationQueuesItem.tsx
@@ -49,7 +49,7 @@ export const AnnotationQueuesItem = ({
itemId: itemId as string,
queueId: annotationQueueId,
},
- { enabled: !!itemId, refetchOnMount: false },
+ { enabled: !!itemId },
);
const [view, setView] = useSessionStorage<"hideTree" | "showTree">(
@@ -58,6 +58,7 @@ export const AnnotationQueuesItem = ({
);
const isSessionItem =
+ !!currentItemType.data &&
currentItemType.data === AnnotationQueueObjectType.SESSION;
const isDetailedViewDisabled = isSessionItem;