This commit is contained in:
Ruben Fiszel
2022-12-14 21:29:00 +01:00
parent af8e0ccd6a
commit 847dfe1c15
3 changed files with 7 additions and 3 deletions

View File

@@ -104,7 +104,9 @@
{#if $flowStore.value.modules}
<FlowGraph
on:click={(e) => {
$selectedId = e.detail.id
if (e.detail.id) {
$selectedId = e.detail.id
}
}}
minHeight={topHeight}
modules={$flowStore.value.modules}

View File

@@ -17,6 +17,7 @@
let job: Job | undefined = undefined
$: upToDisabled =
$selectedId == undefined ||
[
'settings',
'settings-schedule',
@@ -26,7 +27,8 @@
'inputs',
'schedules',
'failure'
].includes($selectedId) || $selectedId?.includes('branch')
].includes($selectedId) ||
$selectedId?.includes('branch')
</script>
<div class="flex flex-row-reverse justify-between items-center gap-x-2">

View File

@@ -275,7 +275,7 @@
loop.items.push(
createVirtualNode(
getParentIds(loop.items),
`Collect iterations' results of For Loop ${module.id}`,
`Collect iterations' results of For Loop ${module.id ?? ''}`,
undefined,
1000
)