mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 16:02:19 +00:00
fix triggers reset upon deploy (#5812)
This commit is contained in:
@@ -461,7 +461,7 @@
|
||||
...structuredClone(newSavedFlow),
|
||||
path: $pathStore
|
||||
} as Flow
|
||||
triggersState.setTriggers([])
|
||||
setDraftTriggers([])
|
||||
loadingSave = false
|
||||
dispatch('deploy', $pathStore)
|
||||
} catch (err) {
|
||||
|
||||
@@ -556,7 +556,7 @@
|
||||
|
||||
const { draft_triggers: _, ...newScript } = structuredClone(script)
|
||||
savedScript = structuredClone(newScript) as NewScriptWithDraft
|
||||
triggersState.setTriggers([])
|
||||
setDraftTriggers([])
|
||||
|
||||
if (!disableHistoryChange) {
|
||||
history.replaceState(history.state, '', `/scripts/edit/${script.path}`)
|
||||
|
||||
Reference in New Issue
Block a user