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 {
}
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]] = {};
......
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