Parcourir la source

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

skirtle il y a 1 an
Parent
commit
e53a4ffbe0
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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])
   }
 }