Fix ErrorBoundary issue
This commit is contained in:
parent
013f5b8bb5
commit
582bfa568e
|
@ -7,7 +7,9 @@ import Bugsnag from "@bugsnag/js";
|
|||
import BugsnagPluginReact from "@bugsnag/plugin-react";
|
||||
import BugsnagPerformance from "@bugsnag/browser-performance";
|
||||
|
||||
let ErrorBoundary: any = <></>;
|
||||
let ErrorBoundary: any = ({ children }: React.PropsWithChildren) => (
|
||||
<>{children}</>
|
||||
);
|
||||
|
||||
if (import.meta.env.VITE_BUGSNAG_KEY) {
|
||||
Bugsnag.start({
|
||||
|
|
Loading…
Reference in New Issue