Closed tquetano-netflix closed 5 years ago
Looks like with the latest release (0.4.22), the check for currentNode.get('callee').node.property.name === 'createClass') fails when there is no node.property. Adding a simple check at this line solves the issue:
0.4.22
currentNode.get('callee').node.property.name === 'createClass'
node.property
return ( currentNode.get('callee').node.name === globalOptions.createReactClassName || (currentNode.get('callee').node.property && currentNode.get('callee').node.property.name === 'createClass') )
I'll whip up a PR for the fix.
Looks like with the latest release (
0.4.22
), the check forcurrentNode.get('callee').node.property.name === 'createClass'
) fails when there is nonode.property
. Adding a simple check at this line solves the issue:I'll whip up a PR for the fix.