Skip to content

Commit 36143bc

Browse files
author
Petr Kachanovsky
committed
fix: preven translated column field from reappearing in translation table
1 parent 3a32d10 commit 36143bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adminforth/modules/restApi.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,8 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
472472
columns:
473473
await Promise.all(
474474
resource.columns.map(
475-
async (col, i) => {
475+
async (inCol, i) => {
476+
const col = JSON.parse(JSON.stringify(inCol));
476477
let validation = null;
477478
if (col.validation) {
478479
validation = await Promise.all(

0 commit comments

Comments
 (0)