Skip to content

Commit f8eb589

Browse files
authored
Merge pull request #100 from devforth/fix-douple-translation
fix: prevent translated column field from reappearing in translation table
2 parents ea59fde + 36143bc commit f8eb589

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)