Skip to content

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

fix(ui): initial loading state of posthog integration

Marc Klingenaeb15b80fef1
diff --git a/web/src/pages/project/[projectId]/settings/posthog-integration.tsx b/web/src/pages/project/[projectId]/settings/posthog-integration.tsx
index 6b0fe0d28b..3fd3251017 100644
--- a/web/src/pages/project/[projectId]/settings/posthog-integration.tsx
+++ b/web/src/pages/project/[projectId]/settings/posthog-integration.tsx
@@ -46,7 +46,13 @@ export default function PosthogIntegrationSettings() {
</Link>
</Button>
}
- status={state.data?.enabled ? "active" : "inactive"}
+ status={
+ state.isInitialLoading
+ ? undefined
+ : state.data?.enabled
+ ? "active"
+ : "inactive"
+ }
/>
<p className="mb-4 text-sm text-gray-700">
We have teamed up with{" "}