Skip to content

Commit

Permalink
Fix Array.find check
Browse files Browse the repository at this point in the history
  • Loading branch information
onEXHovia committed Dec 12, 2024
1 parent aa3a9e3 commit dba76df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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 = this.advancedTargets.find((advanced) => !advanced.hidden) !== null;
const withAdvanced = this.advancedTargets.find((advanced) => !advanced.hidden) !== undefined;
this.advancedTargets.forEach((advanced) => {
advanced.hidden = !withAdvanced;
});
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/public/app.js

Large diffs are not rendered by default.

0 comments on commit dba76df

Please sign in to comment.