fix search #5225

Merged
jessopb merged 1 commit from fix-searchMat into master 2020-12-22 22:27:47 +01:00

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