Skip to content

Commit f7e15d5

Browse files
Rel1cxCopilot
andauthored
Update packages/plugins/eslint-plugin-react-x/src/rules/no-unnecessary-use-callback.ts
Co-authored-by: Copilot <[email protected]> Signed-off-by: REL1CX <[email protected]>
1 parent fa7172c commit f7e15d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plugins/eslint-plugin-react-x/src/rules/no-unnecessary-use-callback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function create(context: RuleContext<MessageID, []>): RuleListener {
4444
return;
4545
}
4646
const initialScope = context.sourceCode.getScope(node);
47-
const component = initialScope.block;
47+
const component = context.sourceCode.getScope(node).block;
4848
if (!AST.isFunction(component)) {
4949
return;
5050
}

0 commit comments

Comments
 (0)