fix: fix erronous not connected error message

This commit is contained in:
Ruben Fiszel
2024-07-16 21:12:44 +02:00
parent 49f1e276c7
commit df41acbdfe
4 changed files with 8 additions and 5 deletions
@@ -9,6 +9,7 @@
import FlowConstants from './FlowConstants.svelte'
import type { FlowModule } from '$lib/gen'
import { initFlowStepWarnings } from '../utils'
import { dfs } from '../dfs'
export let noEditor = false
export let enableAi = false
@@ -41,7 +42,7 @@
flowStepWarnings: await initFlowStepWarnings(
module.value,
$flowStateStore?.[module?.id]?.schema ?? {},
$flowStore?.value?.modules?.map((m) => m.id) ?? []
dfs($flowStore.value.modules, (fm) => fm.id)
)
}
}
@@ -46,6 +46,7 @@
import { loadSchemaFromModule } from '../flowInfers'
import { computeFlowStepWarning, initFlowStepWarnings } from '../utils'
import { debounce } from '$lib/utils'
import { dfs } from '../dfs'
const {
selectedId,
@@ -133,7 +134,7 @@
flowStepWarnings: await initFlowStepWarnings(
flowModule.value,
schema ?? {},
$flowStore?.value?.modules?.map((m) => m?.id) ?? []
dfs($flowStore.value.modules, (fm) => fm.id)
)
}
}
@@ -19,6 +19,7 @@
import FlowBranchesOneWrapper from './FlowBranchesOneWrapper.svelte'
import FlowWhileLoop from './FlowWhileLoop.svelte'
import { initFlowStepWarnings } from '../utils'
import { dfs } from '../dfs'
export let flowModule: FlowModule
export let noEditor: boolean = false
@@ -68,7 +69,7 @@
flowStepWarnings: await initFlowStepWarnings(
module?.value,
$flowStateStore[module?.id]?.schema,
$flowStore.value.modules.map((m) => m.id)
dfs($flowStore.value.modules, (fm) => fm.id)
)
}
}
@@ -151,7 +152,7 @@
flowStepWarnings: await initFlowStepWarnings(
module.value,
$flowStateStore[module.id].schema,
$flowStore.value.modules.map((m) => m.id)
dfs($flowStore.value.modules, (fm) => fm.id)
)
}
}
@@ -194,7 +194,7 @@
flowStepWarnings: await initFlowStepWarnings(
module.value,
$flowStateStore?.[module.id]?.schema ?? {},
$flowStore?.value?.modules?.map((m) => m.id) ?? []
dfs($flowStore.value.modules, (fm) => fm.id)
)
}
}