diff options
author | Takeshi Umeda <noel.yoshiba@gmail.com> | 2022-08-25 11:37:40 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 04:37:40 +0200 |
commit | 66b8abf218a87e65fab8a7fae6fc6ea73c41d750 (patch) | |
tree | 5f0328195e51bda2b0220b563c1f8c89aaf04558 | |
parent | af9c9936dd8c87746c9afa128483a93ad21a8b7e (diff) |
Fix case where boolean was passed to onFilter on StatusActionBar (#18923)
-rw-r--r-- | app/javascript/mastodon/components/status.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index d36311c67..6fc132bf5 100644 --- a/app/javascript/mastodon/components/status.js +++ b/app/javascript/mastodon/components/status.js @@ -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> |