Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Updates thumbs up/thumbs down icon to now show up if it's null

elijahbenizzy4116767f6ec6
diff --git a/telemetry/ui/src/components/routes/app/AnnotationsView.tsx b/telemetry/ui/src/components/routes/app/AnnotationsView.tsx
index 28bbf76c..7ed0ed8c 100644
--- a/telemetry/ui/src/components/routes/app/AnnotationsView.tsx
+++ b/telemetry/ui/src/components/routes/app/AnnotationsView.tsx
@@ -325,7 +325,7 @@ const ObservationsView = (props: { observations: AnnotationObservation[] }) => {
className={`flex flex-col gap-1 ${i === observationsToShow.length - 1 ? '' : 'border-b-2'} border-gray-100`}
>
<div className={`flex flex-row gap-2 max-w-full items-baseline `}>
- {observation.thumbs_up_thumbs_down !== undefined && (
+ {observation.thumbs_up_thumbs_down !== null && (
<div className="translate-y-1">
<Icon className={iconColor} size={16} />
</div>