Просмотр исходного кода

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

skirtle 11 месяцев назад
Родитель
Сommit
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])
   }
 }