feat: refs #8602 streamline beforeSaveFn execution in VnTable component
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
f7af6d706c
commit
cc8aa4def0
|
@ -606,9 +606,7 @@ function removeTextValue(data, getChanges) {
|
||||||
|
|
||||||
data.updates = changes.filter((change) => Object.keys(change.data).length > 0);
|
data.updates = changes.filter((change) => Object.keys(change.data).length > 0);
|
||||||
}
|
}
|
||||||
if ($attrs?.beforeSaveFn) {
|
if ($attrs?.beforeSaveFn) data = $attrs.beforeSaveFn(data, getChanges);
|
||||||
data = $attrs.beforeSaveFn(data, getChanges);
|
|
||||||
}
|
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue