From e255c16baf8ba898d439ff0dcf93aa9be87e3c94 Mon Sep 17 00:00:00 2001 From: rizrmd Date: Wed, 17 Jul 2024 11:14:41 +0000 Subject: [PATCH] fix --- comps/form/field/table-edit/TableEdit.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/comps/form/field/table-edit/TableEdit.tsx b/comps/form/field/table-edit/TableEdit.tsx index 7a17d31..d65c10d 100755 --- a/comps/form/field/table-edit/TableEdit.tsx +++ b/comps/form/field/table-edit/TableEdit.tsx @@ -144,13 +144,13 @@ export const TableEdit: FC<{ }} fm_parent={parent} ext_fm={{ + idx: props.rowIdx, change: () => {}, remove: () => { - console.log(props); - // fm.data[name] = tbl.data.filter( - // (e: any) => e !== props.row - // ); - // fm.render(); + fm.data[name] = tbl.data.filter( + (e: any) => e !== props.row + ); + fm.render(); }, add: (e: any) => { tbl.data.push(e ? e : {});