diff --git a/app/src/frontend/building-edit.js b/app/src/frontend/building-edit.js index 4c1fc4bb..35dbd364 100644 --- a/app/src/frontend/building-edit.js +++ b/app/src/frontend/building-edit.js @@ -1,5 +1,5 @@ import React, { Component } from 'react'; -import { Link } from 'react-router-dom'; +import { Link, Redirect } from 'react-router-dom'; import ErrorBox from './error-box'; import InfoBox from './info-box'; @@ -87,6 +87,9 @@ class BuildingEdit extends Component { } render() { + if (!this.props.user){ + return + } if (!this.props.id){ return (