Merge CEC-394 Car update log (#82)
This commit is contained in:
@@ -2,6 +2,8 @@ import React, { Component } from "react";
|
||||
import PropTypes from "prop-types";
|
||||
import { Typography } from "@material-ui/core";
|
||||
|
||||
import { logger } from "../services/monitoring";
|
||||
|
||||
const reload = () => {
|
||||
window.location.reload();
|
||||
};
|
||||
@@ -22,6 +24,10 @@ export default class ErrorBoundary extends Component {
|
||||
|
||||
render() {
|
||||
if (this.state.hasError) {
|
||||
try {
|
||||
logger.error(this.state.error.stack);
|
||||
} catch (e) {}
|
||||
|
||||
if (this.state.error && this.state.error.name === "ChunkLoadError") {
|
||||
reload();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user