diff --git a/ext/afform/core/ang/af/afForm.component.js b/ext/afform/core/ang/af/afForm.component.js index 0674fc9091c..e2817373275 100644 --- a/ext/afform/core/ang/af/afForm.component.js +++ b/ext/afform/core/ang/af/afForm.component.js @@ -86,11 +86,11 @@ }; function displaySubmitButton(args) { - if (args['sid'] && args['sid'].length > 0) { + if (args.sid && args.sid.length > 0) { return false; } return true; - }; + } // Used when submitting file fields this.fileUploader = new FileUploader({