Commit ea11a839 authored by BharathTarento's avatar BharathTarento
Browse files

changes in form page checking for application is also

1 merge request!4changes in form page checking for application is also
Showing with 3 additions and 4 deletions
+3 -4
...@@ -79,7 +79,7 @@ class FormViewer extends Component { ...@@ -79,7 +79,7 @@ class FormViewer extends Component {
} }
setTimeout(() => { setTimeout(() => {
this.populateForm(this.props.match.params.applicationId); this.populateForm(this.props.match.params.applicationId);
}, 50); }, 1000);
} else { } else {
if (this.userRole === APP.ROLE.INSTITUTION) { if (this.userRole === APP.ROLE.INSTITUTION) {
this.setState({ this.setState({
...@@ -427,8 +427,8 @@ class FormViewer extends Component { ...@@ -427,8 +427,8 @@ class FormViewer extends Component {
saveFields = (index) => { saveFields = (index) => {
// console.log("saveFields..."); // console.log("saveFields...");
if ( if (
this.props.match.params.applicationId === null || !this.props.match.params.applicationId ||
this.props.match.params.applicationId === undefined || this.props.match.params.applicationId ||
this.state.applicationDetails.status === LANG.FORM_STATUS.RETURNED this.state.applicationDetails.status === LANG.FORM_STATUS.RETURNED
) { ) {
let obj = this.state.formFields, let obj = this.state.formFields,
...@@ -525,7 +525,6 @@ class FormViewer extends Component { ...@@ -525,7 +525,6 @@ class FormViewer extends Component {
} }
} }
} }
var fieldGroups = {}; var fieldGroups = {};
for (let i = 0; i < this.state.formHeadings.length; i++) { for (let i = 0; i < this.state.formHeadings.length; i++) {
fieldGroups[this.state.formHeadings[i]] = {}; fieldGroups[this.state.formHeadings[i]] = {};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment