Skip to content

Commit 56253c9

Browse files
authored
fix conditional
the original (coffeescript) used `unless`
1 parent a2ad1d0 commit 56253c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/assets/javascripts/recurring_select_dialog.js.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class RecurringSelectDialog {
276276
// ========================= Change callbacks ===============================
277277

278278
freqChanged() {
279-
if (isPlainObject(this.current_rule.hash)) { this.current_rule.hash = null; } // for custom values
279+
if (!isPlainObject(this.current_rule.hash)) { this.current_rule.hash = null; } // for custom values
280280

281281
if (!this.current_rule.hash) { this.current_rule.hash = {} };
282282
this.current_rule.hash.interval = 1;

0 commit comments

Comments
 (0)