From 67559e164c21c6be7883b09be7134a06d4c5fd67 Mon Sep 17 00:00:00 2001 From: nate Date: Wed, 8 Apr 2026 13:42:49 +0400 Subject: [PATCH] fix: didn't work --- apps/web/src/dashboard/query-builder.js | 3 +++ apps/web/src/views/partials/monitor-form.ejs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/web/src/dashboard/query-builder.js b/apps/web/src/dashboard/query-builder.js index 6972555..44354d0 100644 --- a/apps/web/src/dashboard/query-builder.js +++ b/apps/web/src/dashboard/query-builder.js @@ -22,6 +22,9 @@ class QueryBuilder { this.consider = 'up'; // 'up' | 'down' this.rules = this._defaultRules(); this.render(); + // Notify the form that the default query is already populated, so submitting + // without edits sends the default explicitly instead of leaving it null. + if (this.onChange) this.onChange(this.getQuery()); } _emptyRule() { diff --git a/apps/web/src/views/partials/monitor-form.ejs b/apps/web/src/views/partials/monitor-form.ejs index 6429937..d924d8e 100644 --- a/apps/web/src/views/partials/monitor-form.ejs +++ b/apps/web/src/views/partials/monitor-form.ejs @@ -174,7 +174,7 @@
-

Define <% if (isEdit) { %>up/down conditions<% } else { %>when this monitor should be considered "up"<% } %>. Defaults to a 2xx status (shown below — edit to customise).

+

Define <% if (isEdit) { %>up/down conditions<% } else { %>when this monitor should be considered "up"<% } %>.