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.

Fixes issue with Burr demo

elijahbenizzya65345cd5ecf
diff --git a/telemetry/ui/src/components/routes/app/AppView.tsx b/telemetry/ui/src/components/routes/app/AppView.tsx
index d7f4c7a9..f86bc2b9 100644
--- a/telemetry/ui/src/components/routes/app/AppView.tsx
+++ b/telemetry/ui/src/components/routes/app/AppView.tsx
@@ -392,8 +392,9 @@ export const AppView = (props: {
}
if (error) return <div>Error loading steps</div>;
- if (data === undefined || backendSpec === undefined || annotationsData === undefined)
+ if (data === undefined || backendSpec === undefined) {
return <Loading />;
+ }
const displayAnnotations = props.allowAnnotations && backendSpec.supports_annotations;
// TODO -- re-enable this if I want...
// const previousActions =
@@ -513,7 +514,7 @@ export const AppView = (props: {
setTopToBottomChronological={setTopToBottomChronological}
toggleInspectViewOpen={() => setInspectViewOpen(!inspectViewOpen)}
displayAnnotations={displayAnnotations}
- annotations={annotationsData}
+ annotations={annotationsData || []}
/>
</div>
{!fullScreen && props.orientation === 'stacked_horizontal' && (