fix: Prevent reload loop with error on editor load

This commit is contained in:
Tom Moor
2020-08-10 15:52:45 -07:00
parent e9ce80a3aa
commit 0cac5cfe51
2 changed files with 10 additions and 6 deletions

View File

@ -8,6 +8,7 @@ import CenteredContent from "components/CenteredContent";
import HelpText from "components/HelpText";
import PageTitle from "components/PageTitle";
import { githubIssuesUrl } from "../../shared/utils/routeHelpers";
import env from "env";
type Props = {
children: React.Node,
@ -41,7 +42,7 @@ class ErrorBoundary extends React.Component<Props> {
render() {
if (this.error) {
const isReported = !!window.Sentry;
const isReported = !!window.Sentry && env.DEPLOYMENT === "hosted";
return (
<CenteredContent>