Skip to content
Snippets Groups Projects
Commit 685ec646 authored by leandro's avatar leandro
Browse files

fix redirect after post Project

parent b552e5c3
No related branches found
No related tags found
No related merge requests found
...@@ -306,10 +306,11 @@ export default { ...@@ -306,10 +306,11 @@ export default {
.then((response) => { .then((response) => {
if (response && response.status === 201 && response.data) { if (response && response.status === 201 && response.data) {
//* send thumbnail after feature_type was created //* send thumbnail after feature_type was created
if (this.fileToImport) if (this.fileToImport.size > 0){
this.postProjectThumbnail(response.data.slug); this.postProjectThumbnail(response.data.slug);
} else { }else {
this.goBackNrefresh(response.data.slug); this.goBackNrefresh(response.data.slug);
}
} }
}) })
.catch((error) => { .catch((error) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment