From fca777b1a5c19155a57acc5401872c4ad3b1fa82 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Mon, 22 Aug 2022 23:00:50 +0800 Subject: [PATCH] Merge pull request #18959 from ProjektGopher/fix/extractArgTypes Vue: Fix enum check in extractArgTypes --- app/vue/src/client/docs/extractArgTypes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vue/src/client/docs/extractArgTypes.ts b/app/vue/src/client/docs/extractArgTypes.ts index d2838be75cd..509b1439d3a 100644 --- a/app/vue/src/client/docs/extractArgTypes.ts +++ b/app/vue/src/client/docs/extractArgTypes.ts @@ -11,7 +11,7 @@ const SECTIONS = ['props', 'events', 'slots', 'methods']; function isEnum(propDef: PropDef, docgenInfo: DocgenInfo): false | PropDef { // cast as any, since "values" doesn't exist in DocgenInfo type const { type, values } = docgenInfo as any; - const matched = Array.isArray(values) && values.length && type?.name !== 'enum'; + const matched = Array.isArray(values) && values.length && type?.name === 'enum'; if (!matched) { return false;