Skip to content

Commit

Permalink
fix(dop): fix encrypt in project params config (#4050)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruoqianfengshao authored Jul 4, 2024
1 parent e47e353 commit 036b4f4
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,11 @@ const Config = ({
updater.editing(isEdit);
}}
updateConfig={(data) => {
const [curEncrypt, curData, batch] = Array.isArray(data)
? [data?.[0]?.encrypt, data, true]
: [data.encrypt, [data], false];
const [curData, batch] = Array.isArray(data) ? [data, true] : [[data], false];

configStore.updateConfigs(
{
query: { namespace_name: namespace, encrypt: curEncrypt, appID: `${selectedApp.id}` },
query: { namespace_name: namespace, encrypt: false, appID: `${selectedApp.id}` },
configs: curData,
batch,
},
Expand Down

0 comments on commit 036b4f4

Please sign in to comment.