Skip to content

Commit

Permalink
fix(inital): remove duplicate initialisation block in all.js (#1060)
Browse files Browse the repository at this point in the history
The code block to initialize sortable table copmonents was duplicated
  • Loading branch information
chrispymm authored Jan 9, 2025
1 parent a25af13 commit fdfa97b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/moj/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,6 @@ MOJFrontend.initAll = function (options) {
});
});

var $sortableTables = scope.querySelectorAll('[data-module="moj-sortable-table"]');
MOJFrontend.nodeListForEach($sortableTables, function ($table) {
new MOJFrontend.SortableTable({
table: $table
});
});

const $datepickers = document.querySelectorAll('[data-module="moj-date-picker"]')
MOJFrontend.nodeListForEach($datepickers, function ($datepicker) {
new MOJFrontend.DatePicker($datepicker, {}).init();
Expand Down

0 comments on commit fdfa97b

Please sign in to comment.