Skip to content

Commit

Permalink
1.fix some minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cwangsmv committed Dec 5, 2024
1 parent 1f9ea66 commit a546711
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions packages/insomnia/src/main/ipc/keyChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ export const NunjucksModal = forwardRef<NunjucksModalHandle, ModalProps & Props>
return (
<Modal
ref={modalRef}
className='!z-10'
onHide={() => {
state.onDone(state.template);
setState(state => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ export const WorkspaceEnvironmentsEditModal = ({ onClose }: {
)}
{selectedEnvironment && selectedEnvironment.environmentType === EnvironmentType.KVPAIR &&
<EnvironmentKVEditor
key={selectedEnvironment._id}
key={selectedEnvironment._id}
data={selectedEnvironment.kvPairData || []}
onChange={handleKVPairChange}
/>
Expand Down

0 comments on commit a546711

Please sign in to comment.