Skip to content

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy