From 416dd8d1a8b60b397e872d302b3ac16971f4bae2 Mon Sep 17 00:00:00 2001 From: Charles Hudson Date: Tue, 15 Feb 2022 21:12:50 +0100 Subject: [PATCH] fix: Do not match component name on getter that returns component obj --- src/utils/componentName.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/componentName.ts b/src/utils/componentName.ts index 550d8880df..cd8c74f59b 100644 --- a/src/utils/componentName.ts +++ b/src/utils/componentName.ts @@ -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 = (