mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-22 16:28:32 +00:00
Fix null ref in getConnConfigKeyAtom (#1396)
This commit is contained in:
parent
7386fc19f7
commit
b22dd07929
1 changed files with 1 additions and 1 deletions
|
|
@ -255,7 +255,7 @@ function getConnConfigKeyAtom<T extends keyof ConnKeywords>(connName: string, ke
|
|||
}
|
||||
keyAtom = atom((get) => {
|
||||
let fullConfig = get(atoms.fullConfigAtom);
|
||||
return fullConfig.connections[connName]?.[key];
|
||||
return fullConfig.connections?.[connName]?.[key];
|
||||
});
|
||||
connCache.set(keyAtomName, keyAtom);
|
||||
return keyAtom;
|
||||
|
|
|
|||
Loading…
Reference in a new issue