[Glitch] Fix case where boolean was passed to onFilter on StatusActionBar

Port 66b8abf218 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Takeshi Umeda 2022-08-25 11:37:40 +09:00 committed by Claire
parent 93b6ad2c6c
commit 28f0dfc0b4
1 changed files with 1 additions and 1 deletions

View File

@ -790,7 +790,7 @@ class Status extends ImmutablePureComponent {
status={status} status={status}
account={status.get('account')} account={status.get('account')}
showReplyCount={settings.get('show_reply_count')} showReplyCount={settings.get('show_reply_count')}
onFilter={matchedFilters && this.handleFilterClick} onFilter={matchedFilters ? this.handleFilterClick : null}
{...other} {...other}
/> />
) : null} ) : null}