update gallery-project

This commit is contained in:
Delucse
2020-12-02 18:04:03 +01:00
parent 155675821a
commit e2915e8cd0
5 changed files with 63 additions and 13 deletions
+4 -1
View File
@@ -40,9 +40,12 @@ class Project extends Component {
this.props.returnErrors('', 404, 'GET_SHARE_FAIL');
}
}
if(this.props.message.id === 'GET_PROJECT_SUCCESS'){
else if(this.props.message.id === 'GET_PROJECT_SUCCESS'){
this.props.workspaceName(this.props.project.title);
}
else if(this.props.message.id === 'PROJECT_DELETE_SUCCESS' || this.props.message.id === 'GALLERY_DELETE_SUCCESS'){
this.props.history.push(`/${this.props.type}`);
}
}
}