From 043378d09cb69e05a1affffd4ed25e18b4e25db9 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sat, 5 Oct 2024 19:40:36 +0200 Subject: [PATCH] UI - Live filters preview - Better handling of watch preferences --- changedetectionio/static/js/watch-settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/static/js/watch-settings.js b/changedetectionio/static/js/watch-settings.js index 90ff30e3..ec5dd91d 100644 --- a/changedetectionio/static/js/watch-settings.js +++ b/changedetectionio/static/js/watch-settings.js @@ -23,7 +23,7 @@ function request_textpreview_update() { $('textarea:visible, input:visible').each(function () { const $element = $(this); // Cache the jQuery object for the current element const name = $element.attr('name'); // Get the name attribute of the element - data[name] = $element.is(':checkbox') ? ($element.is(':checked') ? $element.val() : undefined) : $element.val(); + data[name] = $element.is(':checkbox') ? ($element.is(':checked') ? $element.val() : false) : $element.val(); }); $.abortiveSingularAjax({