about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTakeshi Umeda <noel.yoshiba@gmail.com>2022-08-25 11:37:40 +0900
committerClaire <claire.github-309c@sitedethib.com>2022-08-25 09:52:13 +0200
commit28f0dfc0b42cde1e9443df13cae471ee7bb9d988 (patch)
tree03cbe2d77156c5bdffed988e7f02f5806045389a
parent93b6ad2c6c6d2b148d71bf3d4281313a331edb69 (diff)
[Glitch] Fix case where boolean was passed to onFilter on StatusActionBar
Port 66b8abf218a87e65fab8a7fae6fc6ea73c41d750 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
-rw-r--r--app/javascript/flavours/glitch/components/status.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/components/status.js b/app/javascript/flavours/glitch/components/status.js
index 501bcd300..1f1cca813 100644
--- a/app/javascript/flavours/glitch/components/status.js
+++ b/app/javascript/flavours/glitch/components/status.js
@@ -790,7 +790,7 @@ class Status extends ImmutablePureComponent {
               status={status}
               account={status.get('account')}
               showReplyCount={settings.get('show_reply_count')}
-              onFilter={matchedFilters && this.handleFilterClick}
+              onFilter={matchedFilters ? this.handleFilterClick : null}
               {...other}
             />
           ) : null}