From cc8aa4def075af1847f87a7cc59156d2b588ef5b Mon Sep 17 00:00:00 2001 From: pablone Date: Mon, 17 Mar 2025 09:00:54 +0100 Subject: [PATCH] feat: refs #8602 streamline beforeSaveFn execution in VnTable component --- src/components/VnTable/VnTable.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 49889b340..fee8a169f 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -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; }