mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 11:46:46 +00:00
fix: subtable associatedKey
This commit is contained in:
parent
7becc9f8b1
commit
2b549ea259
@ -32,14 +32,14 @@ export default function Table(props: SimpleTableProps) {
|
||||
const { schema = {}, associatedKey, value, onChange, __index } = props;
|
||||
const { collection_name, name } = schema;
|
||||
const viewName = `${collection_name}.${name}.${schema.viewName || 'table'}`;
|
||||
console.log({ props, associatedKey, schema, __index, viewName, schema });
|
||||
console.log({ props, associatedKey, schema, __index, viewName });
|
||||
return (
|
||||
<>
|
||||
<View
|
||||
// __parent={__parent}
|
||||
data={value}
|
||||
onChange={onChange}
|
||||
associatedKey={__index}
|
||||
associatedKey={__index||associatedKey}
|
||||
viewName={viewName}
|
||||
type={'subTable'}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user