diff --git a/src/lib/components/WaterfallView.svelte b/src/lib/components/WaterfallView.svelte index bc5f23c44b4d2ff81826f76a73b9c3ccccff26fc..8093956a214dd963f8afcde0ae3f7d413aab900c 100644 --- a/src/lib/components/WaterfallView.svelte +++ b/src/lib/components/WaterfallView.svelte @@ -197,6 +197,14 @@ } function requestAxesCalculation() { + // Ensure that situation of previous curve is not merged with the new one. + if ( + shared.savedSituation !== undefined && + shared.savedSituationIndex !== undefined + ) { + shared.testCases[shared.savedSituationIndex] = shared.savedSituation + } + shared.savedSituation = situation shared.savedSituationIndex = situationIndex situation = structuredClone($state.snapshot(situation))