Fix null ref in getConnConfigKeyAtom (#1396)

This commit is contained in:
Evan Simkowitz 2024-12-05 15:11:17 -05:00 committed by GitHub
parent 7386fc19f7
commit b22dd07929
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;