Skip to content

Commit

Permalink
eslint yoda
Browse files Browse the repository at this point in the history
  • Loading branch information
onEXHovia committed Dec 11, 2024
1 parent e12b60f commit 2626ab1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/controllers/filter_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class extends Controller {
};

connect() {
const withAdvanced = null !== this.advancedTargets.find((advanced) => !advanced.hidden);
const withAdvanced = this.advancedTargets.find((advanced) => !advanced.hidden) !== null;
this.advancedTargets.forEach((advanced) => {
advanced.hidden = !withAdvanced;

Check failure on line 24 in assets/js/controllers/filter_controller.js

View workflow job for this annotation

GitHub Actions / Webpack Encore

Assignment to property of function parameter 'advanced'
})
Expand Down Expand Up @@ -60,7 +60,7 @@ export default class extends Controller {
}
});

if (0 === changed.length) {
if (changed.length === 0) {
const input = document.createElement('input');
input.type = 'hidden';
input.name = 'filters';
Expand Down

0 comments on commit 2626ab1

Please sign in to comment.