Skip to content

Commit

Permalink
chore: minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Jan 21, 2025
1 parent 0cc0137 commit b9cd226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/helpers/useTemplateRef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function useTemplateRef<T = unknown, Keys extends string = string>(

export function isUseTemplateRefKey(refs: Data, key: string): boolean {
let desc: PropertyDescriptor | undefined
return (
return !!(
(desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable
)
}

0 comments on commit b9cd226

Please sign in to comment.