mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 11:12:20 +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) {
|
if (addChild) {
|
||||||
return wrapSSR(
|
return wrapSSR(<TreeRecordProvider parent={recordData}>{result}</TreeRecordProvider>) as React.ReactElement;
|
||||||
<RecordProvider record={null} parent={parentRecordData}>
|
|
||||||
<TreeRecordProvider parent={recordData}>{result}</TreeRecordProvider>
|
|
||||||
</RecordProvider>,
|
|
||||||
) as React.ReactElement;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return wrapSSR(result) as React.ReactElement;
|
return wrapSSR(result) as React.ReactElement;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user