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.
1 parent 64bf1aa commit d99cf4eCopy full SHA for d99cf4e
packages/react-docgen/src/utils/getMemberExpressionValuePath.ts
@@ -87,7 +87,9 @@ const explodedVisitors = visitors.explode<TraverseState>({
87
const property = memberPath.get('property');
88
89
if (
90
- (!memberPath.node.computed || property.isStringLiteral() || property.isNumericLiteral()) &&
+ (!memberPath.node.computed ||
91
+ property.isStringLiteral() ||
92
+ property.isNumericLiteral()) &&
93
getNameOrValue(property) === state.memberName &&
94
toString(memberPath.get('object')) === state.localName
95
) {
0 commit comments