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

prevent infinite loop

parent 92871da5
Branches
Tags
No related merge requests found
Pipeline #19169 passed
......@@ -53,17 +53,14 @@
: yamlFromRawParameter(runRawParameter),
)
run(() => {
$effect(() => {
if (reviewed) {
parameter = {
...parameter,
last_value_still_valid_on: new Date().toISOString().split("T")[0],
}
parameter.last_value_still_valid_on = new Date()
.toISOString()
.split("T")[0]
} else {
parameter = {
...parameter,
last_value_still_valid_on: originalParameter.last_value_still_valid_on,
}
parameter.last_value_still_valid_on =
originalParameter.last_value_still_valid_on
}
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment