Skip to content

Commit

Permalink
fix string check
Browse files Browse the repository at this point in the history
  • Loading branch information
ProjektGopher committed Aug 18, 2022
1 parent 65e222d commit 38b2de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/renderers/vue/src/docs/extractArgTypes.ts
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 38b2de0

Please sign in to comment.