Skip to content
Snippets Groups Projects
Commit 8710aa12 authored by David Smadja's avatar David Smadja
Browse files

Fix 'test-case modified' indicator when only opening graph

parent 5102ad93
No related branches found
No related tags found
No related merge requests found
Pipeline #20169 passed
......@@ -291,9 +291,19 @@
{#if mode !== "select" && situation.title !== undefined}
{@const situationDetails =
situation.linked_variables?.[displayMode.parametersVariableName]}
{@const omitSlider = (obj: Situation) => {
const result = { ...obj }
if (result.slider !== undefined) {
delete result.slider
}
return result
}}
{@const isModified =
situationIndex < testCasesCore.length &&
!deepEqual(situation, testCasesCore[situationIndex])}
!deepEqual(
omitSlider(situation),
omitSlider(testCasesCore[situationIndex]),
)}
{@const isDuplicated = situationIndex >= testCasesCore.length}
<div
class="-mx-4 mb-3 flex h-12 items-center justify-between bg-gray-200 px-4 py-1"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment