diff --git a/apps/studio/components/ui/GlobalErrorBoundaryState.tsx b/apps/studio/components/ui/GlobalErrorBoundaryState.tsx index 92f916d196..2959826daa 100644 --- a/apps/studio/components/ui/GlobalErrorBoundaryState.tsx +++ b/apps/studio/components/ui/GlobalErrorBoundaryState.tsx @@ -5,14 +5,8 @@ import { useRouter } from 'next/router' import CopyButton from './CopyButton' import Image from 'next/image' -import { - AlertDescription_Shadcn_, - AlertTitle_Shadcn_, - Alert_Shadcn_, - Button, - WarningIcon, - cn, -} from 'ui' +import { Button, cn } from 'ui' +import { Admonition } from 'ui-patterns' import { InlineLinkClassName } from './InlineLink' export type FallbackProps = { @@ -29,6 +23,9 @@ export const GlobalErrorBoundaryState = ({ error, resetErrorBoundary }: Fallback const isRemoveChildError = checkIsError ? errorMessage.includes("Failed to execute 'removeChild' on 'Node'") : false + const isInsertBeforeError = checkIsError + ? errorMessage.includes("Failed to execute 'insertBefore' on 'Node'") + : false // Get Sentry issue ID from error if available const sentryIssueId = (!!error && typeof error === 'object' && (error as any).sentryId) ?? '' @@ -69,77 +66,103 @@ export const GlobalErrorBoundaryState = ({ error, resetErrorBoundary }: Fallback
{errorMessage}
- {isRemoveChildError ? ( -'removeChild' on 'Node' error.
-
+ Try to avoid using Google translate or disable certain browser extensions to avoid
+ running into the{' '}
+
+ {isRemoveChildError
+ ? `'removeChild' on 'Node'`
+ : isInsertBeforeError
+ ? `'insertBefore' on 'Node'`
+ : ''}
+ {' '}
+ error.{' '}
+ window.location.reload()}
+ >
+ Refresh
+ {' '}
+ the browser to see if occurs again.
+