Skip to content

Commit de645ae

Browse files
authored
Node Explorer: Fix issue with pre-existing config block (#276)
Closes #270 Signed-off-by: Tyler Smalley <[email protected]>
1 parent d47cf13 commit de645ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node-explorer-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ export class NodeExplorerProvider
703703
async (node: PeerRoot | FileExplorer) => {
704704
const { addr, path } = extractAddrAndPath(node);
705705

706-
if (addr && this.configManager.config.hosts?.[addr].persistToSSHConfig !== false) {
706+
if (addr && this.configManager.config.hosts?.[addr]?.persistToSSHConfig !== false) {
707707
await syncSSHConfig(addr, this.configManager);
708708
}
709709

0 commit comments

Comments
 (0)