|
|
@@ -50,6 +50,9 @@ async function duplicate(owner, originalProjectId, newProjectName) {
|
|
|
])
|
|
|
segmentation.duplicatedFromProject = originalProjectId
|
|
|
|
|
|
+ // remove any leading or trailing spaces
|
|
|
+ newProjectName = newProjectName.trim()
|
|
|
+
|
|
|
// Now create the new project, cleaning it up on failure if necessary
|
|
|
const newProject = await ProjectCreationHandler.promises.createBlankProject(
|
|
|
owner._id,
|