From c8a9d1dc946b024a01ed10d17b66f3dfc3edef57 Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Tue, 23 Jul 2024 09:27:20 +0800 Subject: [PATCH] fix(subTable): ensure real-time update of formula field values (#4930) * fix(subTable): ensure real-time update of formula field values * chore: fix typo --- .../core/client/src/schema-component/antd/table-v2/Table.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.tsx index 62a9d5687f..690884e47e 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.tsx @@ -539,11 +539,12 @@ export const Table: any = withDynamicSchemaProps( return ( - {inView || isIndex ? props.children : } + {/* 子表格中不能使用懒渲染。详见:https://nocobase.height.app/T-4889/description */} + {others.isSubTable || inView || isIndex ? props.children : } ); }, - [dataSource.length], + [dataSource.length, others.isSubTable], ); const components = useMemo(() => {