Skip to content

Commit cb1ecaf

Browse files
authored
fix: admin submit not responding (#840)
1 parent b1740a7 commit cb1ecaf

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

admin/src/app/foms/fom-add-edit/fom-add-edit.component.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ import { AttachmentUploadService } from "@admin-core/utils/attachmentUploadServi
1515
import { DEFAULT_ISO_DATE_FORMAT, MAX_FILEUPLOAD_SIZE } from '@admin-core/utils/constants';
1616
import { DatePipe, NgClass, NgFor, NgIf } from '@angular/common';
1717
import {
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';
2525
import { RxFormBuilder, RxFormGroup } from '@rxweb/reactive-form-validators';
2626
import { 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

Comments
 (0)