Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

prevent crash due to enum/union props that don't resolve to array literals#46

Open
brentschroeter wants to merge 1 commit intoFormidableLabs:masterfrom
brentschroeter:master
Open

prevent crash due to enum/union props that don't resolve to array literals#46
brentschroeter wants to merge 1 commit intoFormidableLabs:masterfrom
brentschroeter:master

Conversation

@brentschroeter
Copy link

React Docgen sometimes returns a variable name (a string) instead of an array for component properties that are enums or unions, causing a "function undefined" error when value.map() is called.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant