mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 18:26:41 +00:00
fix: subtable to select field value missing
This commit is contained in:
parent
3f90f231b9
commit
f29ba777af
@ -55,8 +55,7 @@ const useTableSelectorProps = () => {
|
||||
export const useTableBlockProps = () => {
|
||||
const field: any = useField();
|
||||
const tableProps = useTableP();
|
||||
const { multiple, selectedRows, tableData, options, collectionField } = useContext(RecordPickerContext);
|
||||
|
||||
const { tableData } = useContext(RecordPickerContext);
|
||||
useEffect(() => {
|
||||
field.value = tableData;
|
||||
}, [tableData]);
|
||||
@ -103,7 +102,6 @@ export const InternalSubTable: any = observer((props: any) => {
|
||||
dragSort: false,
|
||||
}),
|
||||
insertSubTable(schema.SubTable);
|
||||
field.value = [];
|
||||
}, []);
|
||||
|
||||
const usePickActionProps = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user