mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-09 08:03:50 +00:00
fix flow connection
This commit is contained in:
+2
-3
@@ -14,7 +14,7 @@
|
||||
faRefresh
|
||||
} from '@fortawesome/free-solid-svg-icons'
|
||||
import type { AppInput, RunnableByPath } from '../../inputType'
|
||||
import { clearResultAppInput, loadSchema, schemaToInputsSpec } from '../../utils'
|
||||
import { clearResultAppInput, loadSchema } from '../../utils'
|
||||
import EmptyInlineScript from './EmptyInlineScript.svelte'
|
||||
import InlineScriptEditor from './InlineScriptEditor.svelte'
|
||||
import { computeFields } from './utils'
|
||||
@@ -70,10 +70,9 @@
|
||||
const schema = (await loadSchema($workspaceStore ?? '', x.path, 'flow')) ?? emptySchema()
|
||||
x.schema = schema
|
||||
if (componentInput?.type == 'runnable') {
|
||||
componentInput.fields = schemaToInputsSpec(schema, defaultUserInput)
|
||||
componentInput.fields = computeFields(schema, false, componentInput.fields)
|
||||
}
|
||||
componentInput = componentInput
|
||||
console.log('refreshFlow', componentInput)
|
||||
}
|
||||
$: if (
|
||||
componentInput &&
|
||||
|
||||
Reference in New Issue
Block a user