Преглед изворни кода

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

skirtle пре 11 месеци
родитељ
комит
e53a4ffbe0
1 измењених фајлова са 1 додато и 1 уклоњено
  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])
   }
 }