async componentDidMount()

in frontend/src/containers/Home.js [50:65]


  async componentDidMount() {
  if (!this.props.isAuthenticated) {
    return;
  }

  try {
    const fabMap = await this.fabs();
    var d = new Date();
    d.setDate(d.getDate()-1);
    this.setState({ fabs: Object.keys(fabMap).filter(unique), cameras: fabMap, from_date: d});
  } catch (e) {
    console.log(e);
  }

  this.setState({ isLoading: false });
}