Skip to content

Commit

Permalink
fix: Ensure import is used rater than require.
Browse files Browse the repository at this point in the history
  • Loading branch information
davegudge committed Aug 27, 2024
1 parent f4f2cb6 commit ec7bf90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions app/assets/javascripts/recurring_select.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//= require recurring_select_dialog
//= require_self
import './recurring_select_dialog.js.erb';

document.addEventListener("DOMContentLoaded", () => {
document.addEventListener("focusin", (e) => {
Expand Down
6 changes: 3 additions & 3 deletions app/assets/javascripts/recurring_select_dialog.js.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//= require utils
//= require defaults
import utils from './utils';
import defaults from './defaults';

class RecurringSelectDialog {
constructor(recurring_selector) {
Expand Down Expand Up @@ -442,6 +442,6 @@ class RecurringSelectDialog {
}
}

RecurringSelectDialog.config = defaultConfig
RecurringSelectDialog.config = defaults.defaultConfig

window.RecurringSelectDialog = RecurringSelectDialog

0 comments on commit ec7bf90

Please sign in to comment.