diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-04-29 21:10:34 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 03:16:22 -0500 |
commit | cfaed183aadc4306cec2a2004c20c5b107467a7a (patch) | |
tree | 7e9b299f74f9364c4e8f16e8eef4ea51746ea996 /app/javascript/flavours | |
parent | db67333d626cc8ce1a50fe1c0908c186d5382c79 (diff) |
filter prop is sometimes `undefined` i guess???
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r-- | app/javascript/flavours/glitch/selectors/index.js | 2 |
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; |