mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
fix: correct ConnStatus uninitialized field
This commit is contained in:
parent
3693219a8f
commit
fe8b1c1924
@ -604,7 +604,7 @@ function subscribeToConnEvents() {
|
|||||||
function getConnStatusAtom(conn: string): jotai.PrimitiveAtom<ConnStatus> {
|
function getConnStatusAtom(conn: string): jotai.PrimitiveAtom<ConnStatus> {
|
||||||
let rtn = ConnStatusMap.get(conn);
|
let rtn = ConnStatusMap.get(conn);
|
||||||
if (rtn == null) {
|
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);
|
rtn = jotai.atom(connStatus);
|
||||||
ConnStatusMap.set(conn, rtn);
|
ConnStatusMap.set(conn, rtn);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user