Skip to content

Commit

Permalink
🚑 Search module import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bchatard committed May 6, 2019
1 parent d467c78 commit 56f558e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ if (items.length) {
let matchItems = [];
let matchTime;
if (process.env.jb_enhanced_search) {
const searchOptions = require("search");
const fuse = new fuseEngine(items, searchOptions);
const searchOptions = require("./search");
const fuse = new fuseEngine(items, searchOptions.get());
matchItems = fuse.search(query);
matchTime = new Date();
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ const searchOptions = () => {
return fuseOptions;
};

export default searchOptions;
exports.get = searchOptions;

0 comments on commit 56f558e

Please sign in to comment.