mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-19 20:52:32 -04:00
Merge pull request #2726 from alphagov/fix-incorrect-use-of-inarray
$.inArray returns the same value as Array.indexOf
This commit is contained in:
@@ -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 (['move-to-existing-folder', 'add-new-template'].indexOf(this.currentState) !== -1) {
|
||||
mode = 'dialog';
|
||||
}
|
||||
GOVUK.stickAtBottomWhenScrolling.setMode(mode);
|
||||
|
||||
Reference in New Issue
Block a user