Fix flow graph input step preview (#4265)

This commit is contained in:
Faton Ramadani
2024-08-20 16:20:19 +02:00
committed by GitHub
parent 8612013026
commit f237d12330
2 changed files with 2 additions and 2 deletions
@@ -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