mirror of
https://github.com/nocobase/nocobase.git
synced 2026-09-19 02:23:00 +08:00
fix(flow): avoid leaking add-child sourceId to shared resource (#8872)
This commit is contained in:
@@ -39,13 +39,12 @@ AddChildActionModel.registerFlow({
|
||||
addChildInit: {
|
||||
async handler(ctx, params) {
|
||||
ctx.model.onClick = (e) => {
|
||||
ctx.resource.setSourceId(ctx.record.id);
|
||||
|
||||
ctx.model.dispatchEvent(
|
||||
'click',
|
||||
{
|
||||
event: e,
|
||||
...ctx.inputArgs,
|
||||
sourceId: ctx.record.id,
|
||||
filterByTk: null,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user