fix: support dyn select for sub flow (#6835)

* support subflow

* update

* Update frontend/src/lib/common.ts

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
This commit is contained in:
dieriba
2025-10-15 21:43:42 +00:00
committed by GitHub
co-authored by claude[bot] Ruben Fiszel
parent e5ea3e4a57
commit 149d2addfe
2 changed files with 10 additions and 1 deletions
+3 -1
View File
@@ -1,4 +1,4 @@
import type { Script } from './gen'
import type { Script, ScriptLang } from './gen'
export type OwnerKind = 'group' | 'user' | 'folder'
@@ -109,6 +109,8 @@ export function modalToSchema(schema: ModalSchemaProperty): SchemaProperty {
export type Schema = {
$schema: string | undefined
type: string
"x-windmill-dyn-select-code"?: string
"x-windmill-dyn-select-lang"?: ScriptLang
properties: { [name: string]: SchemaProperty }
order?: string[]
required: string[]
@@ -325,6 +325,13 @@
lang: value.language
}
break
case 'flow':
helperScript = {
source: 'deployed',
path: value.path,
runnable_kind: 'flow'
}
break
default:
helperScript = undefined
}