mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-04 21:19:27 +08:00
fix: tree table 'Add Child' button linkage rule without 'current record' variable (#6752)
This commit is contained in:
parent
63ebe1d357
commit
3d73ea0acb
@ -321,11 +321,7 @@ const InternalAction: React.FC<InternalActionProps> = observer(function Com(prop
|
||||
}
|
||||
|
||||
if (addChild) {
|
||||
return wrapSSR(
|
||||
<RecordProvider record={null} parent={parentRecordData}>
|
||||
<TreeRecordProvider parent={recordData}>{result}</TreeRecordProvider>
|
||||
</RecordProvider>,
|
||||
) as React.ReactElement;
|
||||
return wrapSSR(<TreeRecordProvider parent={recordData}>{result}</TreeRecordProvider>) as React.ReactElement;
|
||||
}
|
||||
|
||||
return wrapSSR(result) as React.ReactElement;
|
||||
|
Loading…
x
Reference in New Issue
Block a user