From 1fddf0bcb5e84c5bb2e6abc33c72ec795bdcf380 Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Thu, 7 Dec 2023 14:08:28 +0800 Subject: [PATCH] fix: fix default value is not working in sutable (#3155) --- .../src/schema-component/antd/association-field/SubTable.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/association-field/SubTable.tsx b/packages/core/client/src/schema-component/antd/association-field/SubTable.tsx index 0fd73eadc7..5ab8c4bcc2 100644 --- a/packages/core/client/src/schema-component/antd/association-field/SubTable.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/SubTable.tsx @@ -9,14 +9,13 @@ import { Button } from 'antd'; import React from 'react'; import { FormActiveFieldsProvider } from '../../../block-provider'; import { FlagProvider } from '../../../flag-provider'; -import { useSubTableSpecialCase } from '../form-item/hooks/useSpecialCase'; import { Table } from '../table-v2/Table'; import { useAssociationFieldContext } from './hooks'; export const SubTable: any = observer( (props: any) => { const { field } = useAssociationFieldContext(); - useSubTableSpecialCase({ field }); + // useSubTableSpecialCase({ field }); const move = (fromIndex: number, toIndex: number) => { if (toIndex === undefined) return; if (!isArr(field.value)) return;