Skip to content

Commit bc87ce8

Browse files
committed
fix eslint
1 parent b565a65 commit bc87ce8

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

dt-core/admin/js/dt-settings.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,8 +1623,7 @@ jQuery(document).ready(function ($) {
16231623
let categoryCheckboxes = '';
16241624
for (const [catKey, cat] of Object.entries(fileTypeCategories)) {
16251625
let isChecked =
1626-
!hasStoredTypes ||
1627-
cat.types.every((t) => storedTypes.includes(t));
1626+
!hasStoredTypes || cat.types.every((t) => storedTypes.includes(t));
16281627
categoryCheckboxes += `
16291628
<label style="margin-right: 1em;">
16301629
<input type="checkbox" class="accepted-file-category"
@@ -2447,7 +2446,10 @@ jQuery(document).ready(function ($) {
24472446
});
24482447
let otherVal = $('#other_file_types').val().trim();
24492448
let otherList = otherVal
2450-
? otherVal.split(',').map((s) => s.trim()).filter(Boolean)
2449+
? otherVal
2450+
.split(',')
2451+
.map((s) => s.trim())
2452+
.filter(Boolean)
24512453
: [];
24522454
let allTypes = checkedTypes.concat(otherList);
24532455
let allCategoriesChecked =

0 commit comments

Comments
 (0)