Explorar el Código

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

daiwei hace 6 meses
padre
commit
50602eca5a
Se han modificado 1 ficheros con 1 adiciones y 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,