fix monaco editor default value (#4793)

* fix monaco editor default value

* fix
This commit is contained in:
heheer
2025-05-12 23:09:15 +08:00
committed by GitHub
parent 0ef3d40296
commit cac4b1d435
2 changed files with 26 additions and 6 deletions

View File

@@ -151,7 +151,9 @@ const ChatItemContextProvider = ({
});
}
variablesForm.setValue('variables', newVariableValue);
Object.entries(newVariableValue).forEach(([key, value]) => {
variablesForm.setValue(`variables.${key}`, value);
});
},
[variablesForm]
);