Skip to content

Commit

Permalink
Merge pull request #18959 from ProjektGopher/fix/extractArgTypes
Browse files Browse the repository at this point in the history
Vue: Fix enum check in extractArgTypes
  • Loading branch information
shilman authored Aug 22, 2022
2 parents 9bd3bbf + 38b2de0 commit 3a8b9fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/renderers/vue/src/docs/extractArgTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3a8b9fc

Please sign in to comment.