diff --git a/packages/plugin-search/src/utilities/syncDocAsSearchIndex.ts b/packages/plugin-search/src/utilities/syncDocAsSearchIndex.ts index 2b2372963..7755f44a5 100644 --- a/packages/plugin-search/src/utilities/syncDocAsSearchIndex.ts +++ b/packages/plugin-search/src/utilities/syncDocAsSearchIndex.ts @@ -33,7 +33,7 @@ export const syncDocAsSearchIndex = async ({ * this can happen when hooks call `payload.update` within the create lifecycle * like the nested-docs plugin does */ - return + return doc } else { syncedDocsSet.add(docKey) }