Skip to content

Commit

Permalink
Fix case where boolean was passed to onFilter on StatusActionBar (#18923
Browse files Browse the repository at this point in the history
)
  • Loading branch information
noellabo committed Aug 25, 2022
1 parent af9c993 commit 66b8abf
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 66b8abf

Please sign in to comment.