diff --git a/packages/runtime-core/src/suspense.ts b/packages/runtime-core/src/suspense.ts index 0fdab92b..c852f424 100644 --- a/packages/runtime-core/src/suspense.ts +++ b/packages/runtime-core/src/suspense.ts @@ -68,10 +68,10 @@ export function normalizeSuspenseChildren( content: normalizeVNode(isFunction(d) ? d() : d), fallback: normalizeVNode(isFunction(fallback) ? fallback() : fallback) } - } - - return { - content: normalizeVNode(children as VNodeChild), - fallback: normalizeVNode(null) + } else { + return { + content: normalizeVNode(children as VNodeChild), + fallback: normalizeVNode(null) + } } }