Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit a309c8d

Browse files
committed
fix: repoUrls validation error when creating project
1 parent 8b4e11b commit a309c8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/front/src/app/upsertproject/upsertproject.controller.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ angular.module('topcoderX').controller('ProjectController', ['currentUser', '$sc
128128
if (project.copilot === '') {
129129
project.copilot = null;
130130
}
131-
project.repoUrls = project.repoUrl.split(',');
131+
// project.repoUrls = project.repoUrl.split(',');
132+
const _project = Object.assign({}, project);
133+
delete _project.repoUrls;
132134
if ($scope.editing) {
133135
ProjectService.update(project).then(function () {
134136
Alert.info('Project Updated Successfully', $scope);

0 commit comments

Comments
 (0)