Skip to content

Commit 3385ac3

Browse files
danieldelcoreRajaBellebon
authored andcommitted
ensure value exists before attempting to filter it's members (#94)
1 parent 2378fc8 commit 3385ac3

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "releases": [{ "name": "extract-react-types", "type": "patch" }], "dependents": [] }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Enusre 'value' exists before attempting to filter its members

packages/extract-react-types/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function convertReactComponentClass(path, context) {
224224
* to resolve type definitions of non-relative module imports
225225
* See: https://github.com/atlassian/extract-react-types/issues/89
226226
**/
227-
if (classProperties.value.members) {
227+
if (classProperties.value && classProperties.value.members) {
228228
classProperties.value.members = classProperties.value.members.filter(m => !!m);
229229
}
230230

0 commit comments

Comments
 (0)