Skip to content

Commit 33e0390

Browse files
authored
Merge pull request #417 from devforth/feature/AdminForth/1006/add-virtual-columns-data-to-th
fix: fix recordWithVirtualColumns in afterCreate hook
2 parents 86f2141 + 4f06207 commit 33e0390

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ class AdminForth implements IAdminForth {
522522
return { error: err };
523523
}
524524

525-
const recordWithVirtualColumns = record;
525+
const recordWithVirtualColumns = { ...record };
526526

527527
// execute hook if needed
528528
for (const hook of listify(resource.hooks?.create?.beforeSave)) {

0 commit comments

Comments
 (0)