filter prop is sometimes `undefined` i guess???

staging
multiple creatures 2019-04-29 21:10:34 -05:00
parent db67333d62
commit cfaed183aa
1 changed files with 1 additions and 1 deletions

View File

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