File tree Expand file tree Collapse file tree
frontend/src/pages/WorkPackageDetailPage/WorkPackageEditContainer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ workPackagesRouter.post(
4444 body ( 'deliverables' ) . isArray ( ) ,
4545 body ( 'deliverables.*.id' ) . isInt ( { min : - 1 } ) . not ( ) . isString ( ) ,
4646 nonEmptyString ( body ( 'deliverables.*.detail' ) ) ,
47- intMinZero ( body ( 'projectLead ' ) . optional ( ) ) ,
48- intMinZero ( body ( 'projectManager ' ) . optional ( ) ) ,
47+ intMinZero ( body ( 'projectLeadId ' ) . optional ( ) ) ,
48+ intMinZero ( body ( 'projectManagerId ' ) . optional ( ) ) ,
4949 validateInputs ,
5050 WorkPackagesController . editWorkPackage
5151) ;
Original file line number Diff line number Diff line change @@ -140,8 +140,8 @@ const WorkPackageEditContainer: React.FC<WorkPackageEditContainerProps> = ({ wor
140140 const blockedByWbsNums = blockedBy . map ( ( blocker ) => validateWBS ( blocker ) ) ;
141141 try {
142142 const payload = {
143- projectLead : leadId ? parseInt ( leadId ) : undefined ,
144- projectManager : managerId ? parseInt ( managerId ) : undefined ,
143+ projectLeadId : leadId ? parseInt ( leadId ) : undefined ,
144+ projectManagerId : managerId ? parseInt ( managerId ) : undefined ,
145145 workPackageId : workPackage . id ,
146146 userId,
147147 name,
You can’t perform that action at this time.
0 commit comments