fix: refs #6919 reset form data correctly in FormModel component
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Jorge Penadés 2025-01-28 18:22:11 +01:00
parent cc193ce160
commit a167c983d7
1 changed files with 1 additions and 0 deletions

View File

@ -241,6 +241,7 @@ async function saveAndGo() {
}
function reset() {
formData.value = JSON.parse(JSON.stringify(originalData.value));
updateAndEmit('onFetch', originalData.value);
if ($props.observeFormChanges) {
hasChanges.value = false;