mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-07 16:03:21 +00:00
fix(frontend): createInlineScript only create trigger script if step = 0
This commit is contained in:
@@ -52,8 +52,8 @@ export async function pickScript(path: string, step: number) {
|
||||
|
||||
export async function createInlineScriptModule(language: FlowModuleValue.language, step: number, mode: FlowMode) {
|
||||
const code = language === FlowModuleValue.language.DENO ? (
|
||||
mode === 'pull' ? DENO_INIT_CODE_TRIGGER : DENO_INIT_CODE) : (
|
||||
mode === 'pull' ? PYTHON_INIT_CODE_TRIGGER : PYTHON_INIT_CODE
|
||||
(mode === 'pull' && step == 0) ? DENO_INIT_CODE_TRIGGER : DENO_INIT_CODE) : (
|
||||
(mode === 'pull' && step == 0) ? PYTHON_INIT_CODE_TRIGGER : PYTHON_INIT_CODE
|
||||
)
|
||||
flowStore.update((flow: Flow) => {
|
||||
flow.value.modules[step].value = {
|
||||
|
||||
Reference in New Issue
Block a user