Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Feb 19, 2025
1 parent 0790405 commit 3c8f86f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/src/Service/apiService.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ class ApiService {
const newTarget = targets[0];
targets = null;

for (const node of [...target.childNodes]) {
for (const node of [...target.childNodes]) { // eslint-disable-line unicorn/no-useless-spread
if (node instanceof Element && node.classList.contains('ui') && node.classList.contains('dimmer')) {
continue;
}

$(node).remove();
}
for (const node of [...newTarget.childNodes]) {
for (const node of [...newTarget.childNodes]) { // eslint-disable-line unicorn/no-useless-spread
if (node instanceof Element && node.classList.contains('ui') && node.classList.contains('dimmer')) {
continue;
}
Expand Down
2 changes: 2 additions & 0 deletions public/js/atkjs-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -2572,12 +2572,14 @@ class ApiService {
const newTarget = targets[0];
targets = null;
for (const node of [...target.childNodes]) {
// eslint-disable-line unicorn/no-useless-spread
if (node instanceof Element && node.classList.contains('ui') && node.classList.contains('dimmer')) {
continue;
}
external_jquery__WEBPACK_IMPORTED_MODULE_2___default()(node).remove();
}
for (const node of [...newTarget.childNodes]) {
// eslint-disable-line unicorn/no-useless-spread
if (node instanceof Element && node.classList.contains('ui') && node.classList.contains('dimmer')) {
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion public/js/atkjs-ui.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/atkjs-ui.min.js.map

Large diffs are not rendered by default.

0 comments on commit 3c8f86f

Please sign in to comment.