Skip to content

Commit

Permalink
Fix case where boolean was passed to onFilter on StatusActionBar (mas…
Browse files Browse the repository at this point in the history
  • Loading branch information
noellabo authored and kadoshita committed Nov 19, 2022
1 parent 4fa731b commit d8d24e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/components/status.js
Expand Up @@ -516,7 +516,7 @@ class Status extends ImmutablePureComponent {

{media}

<StatusActionBar scrollKey={scrollKey} status={status} account={account} onFilter={matchedFilters && this.handleFilterClick} {...other} />
<StatusActionBar scrollKey={scrollKey} status={status} account={account} onFilter={matchedFilters ? this.handleFilterClick : null} {...other} />
</div>
</div>
</HotKeys>
Expand Down

0 comments on commit d8d24e0

Please sign in to comment.