From 3de290f04f48d37eaeaa7a818fc7e793f144f547 Mon Sep 17 00:00:00 2001 From: zeppi Date: Tue, 22 Dec 2020 12:43:53 -0500 Subject: [PATCH] fix search --- ui/util/query-params.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/util/query-params.js b/ui/util/query-params.js index 081a957fa..a459fd23a 100644 --- a/ui/util/query-params.js +++ b/ui/util/query-params.js @@ -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 => { -- 2.45.2