mirror of
https://github.com/snowball-tools/snowballtools-base.git
synced 2024-12-22 16:37:44 +00:00
Support not having bugsnag available
This commit is contained in:
parent
46476bef28
commit
535c37d0b4
@ -39,7 +39,9 @@ const gqlEndpoint = `${import.meta.env.VITE_SERVER_URL}/${SERVER_GQL_PATH}`;
|
||||
|
||||
const gqlClient = new GQLClient({ gqlEndpoint });
|
||||
|
||||
const ErrorBoundary = Bugsnag.getPlugin('react')!.createErrorBoundary(React);
|
||||
const ErrorBoundary = bugsnagApiKey
|
||||
? Bugsnag.getPlugin('react')!.createErrorBoundary(React)
|
||||
: ({ children }: any) => children;
|
||||
|
||||
root.render(
|
||||
<ErrorBoundary>
|
||||
|
Loading…
Reference in New Issue
Block a user