replaceState on deploy

This commit is contained in:
Ruben Fiszel
2023-05-06 15:34:30 +02:00
parent ba55e13595
commit 308acca06e
2 changed files with 2 additions and 0 deletions
@@ -155,6 +155,7 @@
}
loadingSave = false
$dirtyStore = false
window.history.replaceState(window.history.state, '', `/flows/edit/${flow.path}`)
goto(`/flows/get/${$flowStore.path}?workspace=${$workspaceStore}`)
} catch (err) {
sendUserToast(`The flow could not be saved: ${err.body}`, true)
@@ -149,6 +149,7 @@
tag: script.tag
}
})
history.replaceState(history.state, '', `/scripts/edit/${script.path}`)
goto(`/scripts/get/${newHash}?workspace=${$workspaceStore}`)
} catch (error) {
sendUserToast(`Error while saving the script: ${error.body || error.message}`, true)