From 56253c91632b54fb9243473a4da1ec494b2979a9 Mon Sep 17 00:00:00 2001 From: glaszig Date: Wed, 6 Dec 2023 01:57:39 -0300 Subject: [PATCH] fix conditional the original (coffeescript) used `unless` --- app/assets/javascripts/recurring_select_dialog.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/recurring_select_dialog.js.erb b/app/assets/javascripts/recurring_select_dialog.js.erb index f4ecf41..bd60f62 100644 --- a/app/assets/javascripts/recurring_select_dialog.js.erb +++ b/app/assets/javascripts/recurring_select_dialog.js.erb @@ -276,7 +276,7 @@ class RecurringSelectDialog { // ========================= Change callbacks =============================== freqChanged() { - if (isPlainObject(this.current_rule.hash)) { this.current_rule.hash = null; } // for custom values + if (!isPlainObject(this.current_rule.hash)) { this.current_rule.hash = null; } // for custom values if (!this.current_rule.hash) { this.current_rule.hash = {} }; this.current_rule.hash.interval = 1;