fix: correct ConnStatus uninitialized field

This commit is contained in:
Sylvia Crowe 2024-08-24 15:27:14 -07:00
parent 3693219a8f
commit fe8b1c1924

View File

@ -604,7 +604,7 @@ function subscribeToConnEvents() {
function getConnStatusAtom(conn: string): jotai.PrimitiveAtom<ConnStatus> {
let rtn = ConnStatusMap.get(conn);
if (rtn == null) {
const connStatus: ConnStatus = { connection: conn, connected: false, error: null };
const connStatus: ConnStatus = { connection: conn, connected: false, error: null, status: "disconnected" };
rtn = jotai.atom(connStatus);
ConnStatusMap.set(conn, rtn);
}