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.

fix(settings): surface organization update failures with an error toast (#60427)

Paul D'Ambradf57e88f431d
diff --git a/frontend/src/scenes/organizationLogic.tsx b/frontend/src/scenes/organizationLogic.tsx
index cc1cb2b4c3f7..362834bfda86 100644
--- a/frontend/src/scenes/organizationLogic.tsx
+++ b/frontend/src/scenes/organizationLogic.tsx
@@ -184,6 +184,10 @@ export const organizationLogic = kea<organizationLogicType>([
updateOrganizationSuccess: () => {
lemonToast.success('Organization updated successfully!')
},
+ updateOrganizationFailure: ({ error, errorObject }: { error: string; errorObject?: unknown }) => {
+ const apiError = errorObject as ApiError | undefined
+ lemonToast.error(`Failed to update organization: ${apiError?.detail || error || 'Unknown error'}`)
+ },
deleteOrganization: async ({ organizationId, redirectPath }) => {
try {
await api.delete(`api/organizations/${organizationId}`)