Skip to content

Commit

Permalink
Update packages/compiler-core/src/utils.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
  • Loading branch information
zhangzhonghe and antfu committed Oct 12, 2022
1 parent fc336da commit 93e3b81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-core/src/utils.ts
Expand Up @@ -447,7 +447,7 @@ export function injectProp(
}

// check existing key to avoid overriding user provided keys
function isAlreadyExists(prop: Property, props: ObjectExpression) {
function isPropExists(prop: Property, props: ObjectExpression) {
let result = false
if (prop.key.type === NodeTypes.SIMPLE_EXPRESSION) {
const propKeyName = prop.key.content
Expand Down

0 comments on commit 93e3b81

Please sign in to comment.