mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-23 16:00:38 +00:00
Fix flow graph input step preview (#4265)
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
modules={flow?.value?.modules}
|
||||
failureModule={flow?.value?.failure_module}
|
||||
on:select={(e) => {
|
||||
const mod = dfs(flow?.value?.modules, (m) => m).find((m) => m?.id === e?.detail)
|
||||
const mod = dfs(flow?.value?.modules ?? [], (m) => m).find((m) => m?.id === e?.detail)
|
||||
stepDetail = mod ?? e.detail
|
||||
dispatch('select', stepDetail)
|
||||
}}
|
||||
|
||||
@@ -437,7 +437,7 @@
|
||||
overflowAuto
|
||||
noSide={true}
|
||||
on:select={(e) => {
|
||||
if (e.detail.id) {
|
||||
if (e.detail) {
|
||||
stepDetail = e.detail
|
||||
} else {
|
||||
stepDetail = undefined
|
||||
|
||||
Reference in New Issue
Block a user