diff --git a/app/assets/javascripts/templateFolderForm.js b/app/assets/javascripts/templateFolderForm.js index 18df5294c..a9bf4c50d 100644 --- a/app/assets/javascripts/templateFolderForm.js +++ b/app/assets/javascripts/templateFolderForm.js @@ -147,7 +147,7 @@ ); // use dialog mode for states which contain more than one form control - if ($.inArray(this.currentState, ['move-to-existing-folder', 'add-new-template'])) { + if ($.inArray(this.currentState, ['move-to-existing-folder', 'add-new-template']) !== -1) { mode = 'dialog'; } GOVUK.stickAtBottomWhenScrolling.setMode(mode);