diff --git a/app/assets/javascripts/frequent_items/index.js b/app/assets/javascripts/frequent_items/index.js index 7f90f673a82..6263acbab8e 100644 --- a/app/assets/javascripts/frequent_items/index.js +++ b/app/assets/javascripts/frequent_items/index.js @@ -17,7 +17,7 @@ const frequentItemDropdowns = [ }, ]; -function initFrequentItemDropdowns() { +const initFrequentItemDropdowns = () => { frequentItemDropdowns.forEach(dropdown => { const { namespace, key } = dropdown; const el = document.getElementById(`js-${namespace}-dropdown`); @@ -66,7 +66,7 @@ function initFrequentItemDropdowns() { }, }); }); -} +}; document.addEventListener('DOMContentLoaded', () => { requestIdleCallback(initFrequentItemDropdowns);