get rid of most errors on Home page for migration

This commit is contained in:
fbruc03
2022-12-04 21:09:54 +01:00
parent 77b338ffb6
commit d6d2505a4b
11 changed files with 29 additions and 32 deletions
+6 -6
View File
@@ -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) => ({