diff --git a/editor/src/fuse.js b/editor/src/fuse.js index c705b38..7343c52 100644 --- a/editor/src/fuse.js +++ b/editor/src/fuse.js @@ -7,7 +7,9 @@ function createTitleSearch() { const options = { keys: ['title'], } - let fuse = new Fuse(documents, options) + + const fuseIndex = Fuse.createIndex(options.keys, documents) + let fuse = new Fuse(documents, options, fuseIndex) resolve({ documents,