diff --git a/html/includes/modal/new_alert_rule.inc.php b/html/includes/modal/new_alert_rule.inc.php
index edc32c1c35..33fc0657c4 100644
--- a/html/includes/modal/new_alert_rule.inc.php
+++ b/html/includes/modal/new_alert_rule.inc.php
@@ -371,6 +371,9 @@ if (LegacyAuth::user()->hasGlobalAdmin()) {
if (typeof extra.recovery == 'undefined') {
extra.recovery = true;
}
+ if (typeof extra.options == 'undefined') {
+ extra.options = new Array();
+ }
if (typeof extra.options.override_query == 'undefined') {
extra.options.override_query = false;
}