Skip to content

Commit

Permalink
hotfix: import chart_helpers correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
shafy committed May 20, 2022
1 parent 825f7d5 commit e2f3a8f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/controllers/chart_controller.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Controller } from "@hotwired/stimulus"
import { Chart, registerables } from "chart.js";
import { formatDates, htmlDecode, htmlLegendPlugin } from "./helpers/chart_helpers";
import { formatDates, htmlDecode, htmlLegendPlugin } from "chart_helpers";

Chart.register(...registerables);

Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions config/importmap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@

pin_all_from "app/javascript/controllers", under: "controllers"
pin "@hotwired/turbo-rails", to: "turbo.min.js", preload: true

pin "chart_helpers", to: "helpers/chart_helpers.js", preload: true

0 comments on commit e2f3a8f

Please sign in to comment.