Skip to content

Commit

Permalink
Add null check
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongarciah committed Sep 12, 2024
1 parent 609fa7f commit d6ee1e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ const attachPropsTable = (

const requiredProp =
prop.required ||
prop.type.raw.includes('.isRequired') ||
prop.type.raw?.includes('.isRequired') ||
(chainedPropType !== false && chainedPropType.required);

const deprecation = (propDescriptor.description || '').match(/@deprecated(\s+(?<info>.*))?/);
Expand Down

0 comments on commit d6ee1e6

Please sign in to comment.