Commit 8acb16f9 by heheer Committed by GitHub

fix mcp tools save (#5028)

parent 095b75ee
...@@ -7,7 +7,7 @@ export const storeSecretValue = ( ...@@ -7,7 +7,7 @@ export const storeSecretValue = (
storeSecret: StoreSecretValueType storeSecret: StoreSecretValueType
): Record<string, SecretValueType> => { ): Record<string, SecretValueType> => {
return Object.fromEntries( return Object.fromEntries(
Object.entries(storeSecret).map(([key, value]) => [ Object.entries(storeSecret || {}).map(([key, value]) => [
key, key,
{ {
secret: encryptSecret(value.value), secret: encryptSecret(value.value),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment