about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-04-29 21:10:34 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:22 -0500
commitcfaed183aadc4306cec2a2004c20c5b107467a7a (patch)
tree7e9b299f74f9364c4e8f16e8eef4ea51746ea996 /app/javascript/flavours/glitch
parentdb67333d626cc8ce1a50fe1c0908c186d5382c79 (diff)
filter prop is sometimes `undefined` i guess???
Diffstat (limited to 'app/javascript/flavours/glitch')
-rw-r--r--app/javascript/flavours/glitch/selectors/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/selectors/index.js b/app/javascript/flavours/glitch/selectors/index.js
index 2f8492942..01f318108 100644
--- a/app/javascript/flavours/glitch/selectors/index.js
+++ b/app/javascript/flavours/glitch/selectors/index.js
@@ -42,7 +42,7 @@ const escapeRegExp = string =>
   string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
 
 export const regexFromFilters = (status, filters) => {
-  if (filters.size === 0) { return null; }
+  if (filters === undefined || filters.size === 0) { return null; }
 
   let has_media = status.get('media_attachments').size > 0;