mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Fix diff overriding agent options (#4479)
This commit is contained in:
parent
983fbd736d
commit
082dc4d755
2 changed files with 3 additions and 0 deletions
1
changes/issue-4470-global-agent-options-update
Normal file
1
changes/issue-4470-global-agent-options-update
Normal file
|
|
@ -0,0 +1 @@
|
|||
* Fix bug with global agent options overriding with difference
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue