Fix diff overriding agent options (#4479)

This commit is contained in:
RachelElysia 2022-03-04 17:20:22 -05:00 committed by GitHub
parent 983fbd736d
commit 082dc4d755
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -0,0 +1 @@
* Fix bug with global agent options overriding with difference

View file

@ -52,6 +52,8 @@ const AppSettingsPage = (): JSX.Element => {
const onFormSubmit = useCallback(
(formData: IConfigNested) => {
const diff = deepDifference(formData, appConfig);
// send all formData.agent_options because diff overrides all agent options
diff.agent_options = formData.agent_options;
configAPI
.update(diff)