Skip to content

Commit d3c9cd2

Browse files
committed
fix: only write private key file key if there is an input value
1 parent 5f9ec57 commit d3c9cd2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

client/src/components/profile.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -581,15 +581,13 @@ export class ProfileConfig {
581581
return;
582582
}
583583

584-
profileClone.privateKeyFilePath = await createInputTextBox(
584+
const keyPath = await createInputTextBox(
585585
ProfilePromptType.PrivateKeyFilePath,
586586
profileClone.privateKeyFilePath,
587587
);
588-
if (
589-
profileClone.privateKeyFilePath === undefined ||
590-
profileClone.privateKeyFilePath === ""
591-
) {
592-
return;
588+
589+
if (keyPath) {
590+
profileClone.privateKeyFilePath = keyPath;
593591
}
594592

595593
await this.upsertProfile(name, profileClone);

0 commit comments

Comments
 (0)