mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### 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:
@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user