iterate workspace picker nav items without spreading a NodeList (#11772)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-10-14 23:47:46 +02:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 5954a510af
commit 4efd9177ce
@@ -271,7 +271,7 @@
}
function moveHighlight(step: 1 | -1) {
const order = [...(rootEl?.querySelectorAll('[data-nav-id]') ?? [])].map(
const order = Array.from(rootEl?.querySelectorAll('[data-nav-id]') ?? []).map(
(el) => el.getAttribute('data-nav-id')!
)
if (order.length === 0) return