diff --git a/packages/runtime-core/src/suspense.ts b/packages/runtime-core/src/suspense.ts index c852f424..0fdab92b 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) } - } else { - return { - content: normalizeVNode(children as VNodeChild), - fallback: normalizeVNode(null) - } + } + + return { + content: normalizeVNode(children as VNodeChild), + fallback: normalizeVNode(null) } }