Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit bd4ee8b

Browse files
authored
Changed var === undefined to !var
1 parent 34d2be5 commit bd4ee8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graphql/elasticsearch/category/resolver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { getIndexName } from '../mapping'
66
async function list (search, filter, currentPage, pageSize = 200, sort, context, rootValue, _source_include) {
77
let query = buildQuery({ search, filter, currentPage, pageSize, sort, type: 'category' });
88

9-
if (_source_include === undefined) {
9+
if (!_source_include) {
1010
_source_include = config.entities.category.includeFields
1111
}
1212

0 commit comments

Comments
 (0)