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 dd6db16 commit 7f8ccb7Copy full SHA for 7f8ccb7
javascript/ql/lib/semmle/javascript/frameworks/React.qll
@@ -806,10 +806,9 @@ private class ReactRouterLocationSource extends DOM::LocationSource::Range {
806
807
private class UseRefDomValueSource extends DOM::DomValueSource::Range {
808
UseRefDomValueSource() {
809
- exists(DataFlow::PropRead current, UseRefStep step, string prop | current = this |
+ exists(DataFlow::PropRead current, UseRefStep step | current = this |
810
step.step(_, current) and
811
- current.mayHavePropertyName(prop) and
812
- prop = "current"
+ current.mayHavePropertyName("current")
813
)
814
}
815
0 commit comments