Fix case where boolean was passed to onFilter on StatusActionBar (#18923)

lolsob-rspec
Takeshi Umeda 2022-08-25 11:37:40 +09:00 committed by GitHub
parent b2f2d2bfe3
commit ae20601c67
1 changed files with 1 additions and 1 deletions

View File

@ -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>