Skip to content

Commit 50602ec

Browse files
committed
fix(KeepAlive): remove unnecessary null check in getInnerBlock call
1 parent e70ca5d commit 50602ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-vapor/src/components/KeepAlive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export const VaporKeepAliveImpl: ObjectVaporComponent = defineVaporComponent({
116116
const cacheBlock = () => {
117117
// TODO suspense
118118
const block = keepAliveInstance.block!
119-
const [innerBlock, interop] = getInnerBlock(block)!
119+
const [innerBlock, interop] = getInnerBlock(block)
120120
if (!innerBlock || !shouldCache(innerBlock, props, interop)) return
121121
innerCacheBlock(
122122
interop ? innerBlock.vnode!.type : innerBlock.type,

0 commit comments

Comments
 (0)