Fixed merging the config (#3783)

This commit is contained in:
Erik Jan de Wit 2022-11-17 11:14:20 -05:00 committed by GitHub
parent 3da00919b7
commit b5698be23c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,11 +88,12 @@ export const ExecutionConfigModal = ({
try { try {
if (config) { if (config) {
const newConfig = { const newConfig = {
...config, id: config.id,
alias: config.alias,
config: changedConfig.config, config: changedConfig.config,
}; };
await adminClient.authenticationManagement.updateConfig(newConfig); await adminClient.authenticationManagement.updateConfig(newConfig);
setConfig({ ...newConfig.config }); setConfig({ ...newConfig });
} else { } else {
const newConfig = { const newConfig = {
id: execution.id!, id: execution.id!,