Skip to content

Commit

Permalink
set default weight unit if just a number is found as weight
Browse files Browse the repository at this point in the history
  • Loading branch information
bandinopla committed Nov 23, 2024
1 parent e9a9014 commit 9875809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/db/resolvers/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export const SearchResolver = {
search: async ( _, { query, page = 1 }, context )=> {
const LIMIT = MAX_ITEMS_PER_PAGE;
const OFFSET = (page - 1) * LIMIT;
const defaultUseKg = context.userInfo.usekg;
const defaultUseKg = context.userInfo? context.userInfo.usekg : true; // by default we assume KG if not set otherwise
const searchOptions = searchParams( query, defaultUseKg );
const options = [];
const queryParams = [];
Expand Down

0 comments on commit 9875809

Please sign in to comment.