From 7f8ccb7d46509e464160d7667cf0d734a95fa858 Mon Sep 17 00:00:00 2001 From: Kristen Newbury Date: Wed, 22 Oct 2025 17:15:59 -0400 Subject: [PATCH] Simplify addition --- javascript/ql/lib/semmle/javascript/frameworks/React.qll | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/javascript/ql/lib/semmle/javascript/frameworks/React.qll b/javascript/ql/lib/semmle/javascript/frameworks/React.qll index 05d8db6a075..c68b6846a5b 100644 --- a/javascript/ql/lib/semmle/javascript/frameworks/React.qll +++ b/javascript/ql/lib/semmle/javascript/frameworks/React.qll @@ -806,10 +806,9 @@ private class ReactRouterLocationSource extends DOM::LocationSource::Range { private class UseRefDomValueSource extends DOM::DomValueSource::Range { UseRefDomValueSource() { - exists(DataFlow::PropRead current, UseRefStep step, string prop | current = this | + exists(DataFlow::PropRead current, UseRefStep step | current = this | step.step(_, current) and - current.mayHavePropertyName(prop) and - prop = "current" + current.mayHavePropertyName("current") ) } }