Skip to content

Commit

Permalink
include categories a little
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Nov 4, 2024
1 parent 7f9e441 commit 464e87e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/js/components/fields/FieldtypeSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ export default {
const fuse = new Fuse(options, {
findAllMatches: true,
threshold: 0.1,
keys: ['text'],
keys: [
{name: 'text', weight: 1},
{name: 'categories', weight: 0.1}
],
});
options = fuse.search(this.search).map(result => result.item);
Expand Down

0 comments on commit 464e87e

Please sign in to comment.