From a546711bd5ec1764be9b6822bcd23742f6f0ed13 Mon Sep 17 00:00:00 2001 From: Kent Wang Date: Thu, 5 Dec 2024 15:27:02 +0800 Subject: [PATCH] 1.fix some minor issues --- packages/insomnia/src/main/ipc/keyChain.ts | 3 --- packages/insomnia/src/ui/components/modals/nunjucks-modal.tsx | 1 - .../ui/components/modals/workspace-environments-edit-modal.tsx | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/insomnia/src/main/ipc/keyChain.ts b/packages/insomnia/src/main/ipc/keyChain.ts index 32e18c1897f..7b8395d80a3 100644 --- a/packages/insomnia/src/main/ipc/keyChain.ts +++ b/packages/insomnia/src/main/ipc/keyChain.ts @@ -24,9 +24,6 @@ export function registergKeyChainHandlers() { const saveToKeyChain = async (accountId: string, key: string) => { try { await keytar.setPassword(serviceName, accountId, key); - if (safeStorage.isEncryptionAvailable()) { - return safeStorage.encryptString(key); - } return key; } catch (error) { console.error(`Can not save key to keychain ${error.toString()}`); diff --git a/packages/insomnia/src/ui/components/modals/nunjucks-modal.tsx b/packages/insomnia/src/ui/components/modals/nunjucks-modal.tsx index 23c8c565483..ff472ff6e4c 100644 --- a/packages/insomnia/src/ui/components/modals/nunjucks-modal.tsx +++ b/packages/insomnia/src/ui/components/modals/nunjucks-modal.tsx @@ -73,7 +73,6 @@ export const NunjucksModal = forwardRef return ( { state.onDone(state.template); setState(state => ({ diff --git a/packages/insomnia/src/ui/components/modals/workspace-environments-edit-modal.tsx b/packages/insomnia/src/ui/components/modals/workspace-environments-edit-modal.tsx index 1ffe8812128..73e61a55013 100644 --- a/packages/insomnia/src/ui/components/modals/workspace-environments-edit-modal.tsx +++ b/packages/insomnia/src/ui/components/modals/workspace-environments-edit-modal.tsx @@ -487,7 +487,7 @@ export const WorkspaceEnvironmentsEditModal = ({ onClose }: { )} {selectedEnvironment && selectedEnvironment.environmentType === EnvironmentType.KVPAIR &&