Skip to content

Commit e92b3d5

Browse files
committed
fix: use recordCopy instead of record in checkShowIf function
1 parent e90ab0d commit e92b3d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/spa/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ export function checkShowIf(c: AdminForthResourceColumnInputCommon, record: Reco
468468
const fieldEntries = Object.entries(predicate).filter(([key]) => !key.startsWith('$'));
469469
if (fieldEntries.length > 0) {
470470
const fieldResult = fieldEntries.every(([field, condition]) => {
471-
const recordValue = record[field];
471+
const recordValue = recordCopy[field];
472472

473473
if (condition === undefined) {
474474
return true;

0 commit comments

Comments
 (0)