We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 119bf24 + c209c28 commit f376b69Copy full SHA for f376b69
lib/rules/jsx-key.js
@@ -61,7 +61,7 @@ module.exports = function(context) {
61
if (isFn || isArrFn) {
62
if (fn.body.type === 'BlockStatement') {
63
var returnStatement = getReturnStatement(fn.body.body);
64
- if (returnStatement) {
+ if (returnStatement && returnStatement.argument) {
65
checkIteratorElement(returnStatement.argument);
66
}
67
0 commit comments