mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-03-02 04:02:13 +01:00
Fix null ref in getConnConfigKeyAtom (#1396)
This commit is contained in:
parent
7386fc19f7
commit
b22dd07929
@ -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 New Issue
Block a user