Sfoglia il codice sorgente

chore(hydration): reuse existing variable (#13412)

skirtle 11 mesi fa
parent
commit
e53a4ffbe0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      packages/runtime-core/src/hydration.ts

+ 1 - 1
packages/runtime-core/src/hydration.ts

@@ -997,6 +997,6 @@ function isMismatchAllowed(
     if (allowedType === MismatchTypes.TEXT && list.includes('children')) {
       return true
     }
-    return allowedAttr.split(',').includes(MismatchTypeString[allowedType])
+    return list.includes(MismatchTypeString[allowedType])
   }
 }