Explorar o código

fix(KeepAlive): remove unnecessary null check in getInnerBlock call

daiwei hai 6 meses
pai
achega
50602eca5a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/runtime-vapor/src/components/KeepAlive.ts

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

@@ -116,7 +116,7 @@ export const VaporKeepAliveImpl: ObjectVaporComponent = defineVaporComponent({
     const cacheBlock = () => {
       // TODO suspense
       const block = keepAliveInstance.block!
-      const [innerBlock, interop] = getInnerBlock(block)!
+      const [innerBlock, interop] = getInnerBlock(block)
       if (!innerBlock || !shouldCache(innerBlock, props, interop)) return
       innerCacheBlock(
         interop ? innerBlock.vnode!.type : innerBlock.type,