Selaa lähdekoodia

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

daiwei 6 kuukautta sitten
vanhempi
commit
50602eca5a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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,