mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-27 08:02:39 +00:00
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:
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
|
||||
|
||||
Reference in New Issue
Block a user