Merge pull request #5225 from lbryio/fix-searchMat

fix search
This commit is contained in:
jessopb 2020-12-22 16:27:47 -05:00 committed by GitHub
commit 75b1bf3a77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,7 @@ export const getSearchQueryString = (query: string, options: any = {}) => {
const { related_to } = options;
const { nsfw } = options;
if (related_to) additionalOptions['related_to'] = related_to;
if (typeof nsfw !== 'undefined') additionalOptions['nsfw'] = nsfw;
if (nsfw !== true) additionalOptions['nsfw'] = false;
if (additionalOptions) {
Object.keys(additionalOptions).forEach(key => {