diff --git a/plugins/plugin-search/src/node/searchPlugin.ts b/plugins/plugin-search/src/node/searchPlugin.ts index 3283208f..d37b258f 100644 --- a/plugins/plugin-search/src/node/searchPlugin.ts +++ b/plugins/plugin-search/src/node/searchPlugin.ts @@ -37,9 +37,8 @@ export function searchPlugin({ await prepareSearchIndex({ app, isSearchable, searchOptions }) } else { - const placeholder = prepareSearchIndexPlaceholder(app) - await placeholder - placeholder.then(() => prepareSearchIndex({ app, isSearchable, searchOptions })) + await prepareSearchIndexPlaceholder(app) + prepareSearchIndex({ app, isSearchable, searchOptions }) } },