Feat: Downstream operators can get the variables defined by the user input operator #3221 (#9036)

### What problem does this PR solve?

Feat: Downstream operators can get the variables defined by the user
input operator #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-07-24 19:51:08 +08:00
committed by GitHub
parent 5c6e586251
commit 6529bb433b
8 changed files with 81 additions and 11 deletions

View File

@ -382,7 +382,7 @@ export const useUploadCanvasFileWithProgress = (
files.forEach((file) => {
onError(file, error as Error);
});
message.error('error', error.message);
message.error('error', error?.message);
}
},
});
@ -468,10 +468,15 @@ export const useFetchInputForm = (componentId?: string) => {
initialData: {},
enabled: !!id && !!componentId,
queryFn: async () => {
const { data } = await agentService.inputForm({
id,
component_id: componentId,
});
const { data } = await agentService.inputForm(
{
params: {
id,
component_id: componentId,
},
},
true,
);
return data.data;
},