fix triggers reset upon deploy (#5812)

This commit is contained in:
Guilhem
2025-05-26 09:21:46 +02:00
committed by GitHub
parent e15b94692d
commit b2b579387e
2 changed files with 2 additions and 2 deletions
@@ -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}`)