Merge CEC-394 Car update log (#82)

This commit is contained in:
John Wu
2021-08-26 15:03:45 -07:00
committed by GitHub
parent d1815e2ff9
commit 74eb2707a3
34 changed files with 3114 additions and 3583 deletions

View File

@@ -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;