Skip to content

Commit 4081e92

Browse files
committed
Address chance of invalid querySelector call
1 parent 5bb1446 commit 4081e92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/components/TestQueue/Actions.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ const Actions = ({
203203

204204
setTimeout(() => {
205205
const focusTarget =
206-
document.querySelector(`h2#${testPlan.directory}`) ??
206+
document.querySelector(`h2#${CSS.escape(testPlan.directory)}`) ??
207207
document.querySelector('#main');
208208

209209
focusTarget.focus();

0 commit comments

Comments
 (0)