fix search

This commit is contained in:
zeppi 2020-12-22 12:43:53 -05:00
parent 53d3efe895
commit 3de290f04f

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 => {