mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-12 16:02:56 +00:00
fix: iterate NodeLists with Array.from so svelte-check passes
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
f7f7d68195
commit
3be851e4ab
@@ -317,17 +317,15 @@
|
||||
}
|
||||
let flowEl: HTMLElement | undefined = $state()
|
||||
const nodeUnder = (x: number, y: number) =>
|
||||
[...(flowEl?.querySelectorAll('.svelte-flow__node') ?? [])]
|
||||
Array.from(flowEl?.querySelectorAll('.svelte-flow__node') ?? [])
|
||||
.find((el) => within(el, x, y))
|
||||
?.getAttribute('data-id') ?? undefined
|
||||
const overBlank = (x: number, y: number) =>
|
||||
!!flowEl &&
|
||||
within(flowEl, x, y) &&
|
||||
![
|
||||
...flowEl.querySelectorAll(
|
||||
'.svelte-flow__panel, .svelte-flow__controls, .svelte-flow__minimap'
|
||||
)
|
||||
].some((el) => within(el, x, y))
|
||||
!Array.from(
|
||||
flowEl.querySelectorAll('.svelte-flow__panel, .svelte-flow__controls, .svelte-flow__minimap')
|
||||
).some((el) => within(el, x, y))
|
||||
const readsAsset = (assetId: string, scriptId: string) =>
|
||||
model.edges.some((x) => x.kind === 'lineage-read' && x.source === assetId && x.target === scriptId)
|
||||
const assetOf = (assetId: string) => {
|
||||
|
||||
Reference in New Issue
Block a user