fix search #5225
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ export const getSearchQueryString = (query: string, options: any = {}) => {
|
||||||
const { related_to } = options;
|
const { related_to } = options;
|
||||||
const { nsfw } = options;
|
const { nsfw } = options;
|
||||||
if (related_to) additionalOptions['related_to'] = related_to;
|
if (related_to) additionalOptions['related_to'] = related_to;
|
||||||
if (typeof nsfw !== 'undefined') additionalOptions['nsfw'] = nsfw;
|
if (nsfw !== true) additionalOptions['nsfw'] = false;
|
||||||
|
|
||||||
if (additionalOptions) {
|
if (additionalOptions) {
|
||||||
Object.keys(additionalOptions).forEach(key => {
|
Object.keys(additionalOptions).forEach(key => {
|
||||||
|
|
Loading…
Reference in a new issue