Skip to content

Commit

Permalink
Merge pull request storybookjs#18959 from ProjektGopher/fix/extractAr…
Browse files Browse the repository at this point in the history
…gTypes

Vue: Fix enum check in extractArgTypes
  • Loading branch information
shilman committed Aug 22, 2022
1 parent f00e484 commit fca777b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/vue/src/client/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 fca777b

Please sign in to comment.