get rid of most errors on Home page for migration
This commit is contained in:
@@ -75,7 +75,7 @@ class WorkspaceFunc extends Component {
|
||||
<ResetWorkspace
|
||||
style={
|
||||
this.props.projectType === "project" ||
|
||||
this.props.projectType === "gallery"
|
||||
this.props.projectType === "gallery"
|
||||
? { marginRight: "5px" }
|
||||
: null
|
||||
}
|
||||
@@ -83,10 +83,10 @@ class WorkspaceFunc extends Component {
|
||||
) : null}
|
||||
|
||||
{!this.props.assessment &&
|
||||
(this.props.projectType === "project" ||
|
||||
this.props.projectType === "gallery") &&
|
||||
this.props.user &&
|
||||
this.props.user.email === this.props.project.creator ? (
|
||||
(this.props.projectType === "project" ||
|
||||
this.props.projectType === "gallery") &&
|
||||
this.props.user &&
|
||||
this.props.user.email === this.props.project.creator ? (
|
||||
<DeleteProject
|
||||
project={this.props.project}
|
||||
projectType={this.props.projectType}
|
||||
@@ -99,7 +99,7 @@ class WorkspaceFunc extends Component {
|
||||
|
||||
WorkspaceFunc.propTypes = {
|
||||
user: PropTypes.object,
|
||||
autosave: PropTypes.bool.isRequired,
|
||||
autosave: PropTypes.bool,
|
||||
};
|
||||
|
||||
const mapStateToProps = (state) => ({
|
||||
|
||||
Reference in New Issue
Block a user