Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(settings): wrap settings components in error boundary (#58091)

Thomas Obermüller82e4e2ae4150
diff --git a/frontend/src/scenes/settings/Settings.tsx b/frontend/src/scenes/settings/Settings.tsx
index d92248460821..b1d531c59a9d 100644
--- a/frontend/src/scenes/settings/Settings.tsx
+++ b/frontend/src/scenes/settings/Settings.tsx
@@ -18,6 +18,8 @@ import { getAccessControlDisabledReason } from 'lib/utils/accessControlUtils'
import { teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'
+import { ErrorBoundary } from '~/layout/ErrorBoundary'
+
import { SearchResultGroup } from './settingsLogic'
import { settingsLogic } from './settingsLogic'
import { SettingId, SettingLevelId, SettingSectionId, SettingsLogicProps } from './types'
@@ -371,7 +373,7 @@ function SettingsRenderer(props: SettingsLogicProps & { handleLocally: boolean }
</p>
)}
- {x.component}
+ <ErrorBoundary>{x.component}</ErrorBoundary>
</div>
))
) : (