mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-26 21:37:40 +00:00
Update AddFlowVariableModal component to include parameter management
This commit is contained in:
parent
bb97721364
commit
04af4997af
@ -120,9 +120,6 @@ export const AddFlowVariableModal: React.FC = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onFinish = (values: any) => {
|
const onFinish = (values: any) => {
|
||||||
console.log('Received values of form:', values);
|
|
||||||
|
|
||||||
// save variables to localStorage
|
|
||||||
const variables = JSON.stringify(values.parameters);
|
const variables = JSON.stringify(values.parameters);
|
||||||
localStorage.setItem('variables', variables);
|
localStorage.setItem('variables', variables);
|
||||||
setIsModalOpen(false);
|
setIsModalOpen(false);
|
||||||
@ -202,6 +199,8 @@ export const AddFlowVariableModal: React.FC = () => {
|
|||||||
if (param) {
|
if (param) {
|
||||||
param.value = variableStr;
|
param.value = variableStr;
|
||||||
param.category = selectedVariableData?.data?.category;
|
param.category = selectedVariableData?.data?.category;
|
||||||
|
param.value_type = selectedVariableData?.data?.value_type;
|
||||||
|
|
||||||
form.setFieldsValue({
|
form.setFieldsValue({
|
||||||
parameters: [...parameters],
|
parameters: [...parameters],
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user