Skip to content

Commit

Permalink
fix: Do not match component name on getter that returns component obj
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Hudson committed Feb 15, 2022
1 parent 89fe6a7 commit 416dd8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/componentName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const getComponentNameInSetup = (
type: VNodeTypes
): string | undefined =>
Object.keys(instance?.setupState || {}).find(
(key) => instance.setupState[key] === type
(key) => Object.getOwnPropertyDescriptor(instance.setupState, key)?.value === type
)

export const getComponentRegisteredName = (
Expand Down

0 comments on commit 416dd8d

Please sign in to comment.