Skip to content

Commit 5dd3177

Browse files
authored
Merge pull request gregschmit#167 from glaszig/patch-1
repair `data-custom` options
2 parents a2ad1d0 + 56253c9 commit 5dd3177

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)