diff --git a/website/docs/plugins/lifecycle.mdx b/website/docs/plugins/lifecycle.mdx index a4a429648d373..d715c8fe09417 100644 --- a/website/docs/plugins/lifecycle.mdx +++ b/website/docs/plugins/lifecycle.mdx @@ -198,9 +198,8 @@ const myPlugin = (): Plugin => { onExecute({ args }) { return { onExecuteDone: ({ result, setResult }) => { - if (isAsyncIterable(result)) { - // Here you can access result, and modify it with setResult if needed - } + if (!isAsyncIterable(result)) return + // Here you can access result, and modify it with setResult if needed }, }; },