From ea11a8395d8c0155274acc3ddab331df4f678aaa Mon Sep 17 00:00:00 2001 From: BharathTarento <bharath.kumar@tarento.cocom> Date: Thu, 1 Dec 2022 20:24:54 +0530 Subject: [PATCH] changes in form page checking for application is also --- src/components/form/FormViewer.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/form/FormViewer.js b/src/components/form/FormViewer.js index 91e7932..b4eda9c 100644 --- a/src/components/form/FormViewer.js +++ b/src/components/form/FormViewer.js @@ -79,7 +79,7 @@ class FormViewer extends Component { } setTimeout(() => { this.populateForm(this.props.match.params.applicationId); - }, 50); + }, 1000); } else { if (this.userRole === APP.ROLE.INSTITUTION) { this.setState({ @@ -427,8 +427,8 @@ class FormViewer extends Component { saveFields = (index) => { // console.log("saveFields..."); if ( - this.props.match.params.applicationId === null || - this.props.match.params.applicationId === undefined || + !this.props.match.params.applicationId || + this.props.match.params.applicationId || this.state.applicationDetails.status === LANG.FORM_STATUS.RETURNED ) { let obj = this.state.formFields, @@ -525,7 +525,6 @@ class FormViewer extends Component { } } } - var fieldGroups = {}; for (let i = 0; i < this.state.formHeadings.length; i++) { fieldGroups[this.state.formHeadings[i]] = {}; -- GitLab