@@ -15,12 +15,12 @@ import { AttachmentUploadService } from "@admin-core/utils/attachmentUploadServi
1515import { DEFAULT_ISO_DATE_FORMAT , MAX_FILEUPLOAD_SIZE } from '@admin-core/utils/constants' ;
1616import { DatePipe , NgClass , NgFor , NgIf } from '@angular/common' ;
1717import {
18- AttachmentResponse , DistrictResponse , ForestClientResponse ,
19- ForestClientService ,
20- ProjectCreateRequest ,
21- ProjectPlanCodeEnum ,
22- ProjectResponse ,
23- ProjectService , WorkflowStateEnum
18+ AttachmentResponse , DistrictResponse , ForestClientResponse ,
19+ ForestClientService ,
20+ ProjectCreateRequest ,
21+ ProjectPlanCodeEnum ,
22+ ProjectResponse ,
23+ ProjectService , WorkflowStateEnum
2424} from '@api-client' ;
2525import { RxFormBuilder , RxFormGroup } from '@rxweb/reactive-form-validators' ;
2626import { User } from "@utility/security/user" ;
@@ -269,8 +269,7 @@ export class FomAddEditComponent implements OnInit, AfterViewInit, OnDestroy {
269269 projectCreate . commentingClosedDate = cmcDateIsoVal ? cmcDateIsoVal : null ;
270270 projectCreate . operationStartYear = DateTime . fromJSDate ( this . fg . get ( 'opStartDate' ) . value ) . year ;
271271 projectCreate . operationEndYear = DateTime . fromJSDate ( this . fg . get ( 'opEndDate' ) . value ) . year ;
272-
273- // lastValueFrom(
272+ lastValueFrom (
274273 this . projectSvc . projectControllerCreate ( projectCreate ) . pipe (
275274 tap ( ( result ) => {
276275 this . onSuccess ( result . id ) ;
@@ -280,7 +279,7 @@ export class FomAddEditComponent implements OnInit, AfterViewInit, OnDestroy {
280279 return of ( null ) ;
281280 } )
282281 )
283- // );
282+ ) ;
284283 }
285284
286285 onSuccess ( id : number ) {
0 commit comments