Skip to main content
Sign in
Snippets Groups Projects
Commit 710193fc authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Restitue le cas type initial à la fermeture de la courbe

parent 0c62fb0c
No related branches found
No related tags found
No related merge requests found
Pipeline #18896 passed
...@@ -189,14 +189,16 @@ ...@@ -189,14 +189,16 @@
if (shared.savedSituation !== undefined) { if (shared.savedSituation !== undefined) {
situation = shared.savedSituation situation = shared.savedSituation
delete shared.savedSituation delete shared.savedSituation
if (shared.savedSituationIndex !== undefined) if (shared.savedSituationIndex !== undefined) {
shared.testCases[shared.savedSituationIndex] = situation shared.testCases[shared.savedSituationIndex] = situation
delete shared.savedSituationIndex delete shared.savedSituationIndex
} }
} }
}
function requestAxesCalculation() { function requestAxesCalculation() {
shared.savedSituation = situation shared.savedSituation = situation
shared.savedSituationIndex = situationIndex
situation = structuredClone($state.snapshot(situation)) situation = structuredClone($state.snapshot(situation))
shared.testCases[situationIndex] = situation shared.testCases[situationIndex] = situation
if ( if (
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment