feat: refs #8602 streamline beforeSaveFn execution in VnTable component
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Pablo Natek 2025-03-17 09:00:54 +01:00
parent f7af6d706c
commit cc8aa4def0
1 changed files with 1 additions and 3 deletions

View File

@ -606,9 +606,7 @@ function removeTextValue(data, getChanges) {
data.updates = changes.filter((change) => Object.keys(change.data).length > 0);
}
if ($attrs?.beforeSaveFn) {
data = $attrs.beforeSaveFn(data, getChanges);
}
if ($attrs?.beforeSaveFn) data = $attrs.beforeSaveFn(data, getChanges);
return data;
}