fix ts errors

This commit is contained in:
sawka 2024-09-06 11:13:55 -07:00
parent c00749efeb
commit f51678415c

View File

@ -626,6 +626,7 @@ function getConnStatusAtom(conn: string): jotai.PrimitiveAtom<ConnStatus> {
error: null, error: null,
status: "connected", status: "connected",
hasconnected: true, hasconnected: true,
activeconnnum: 0,
}; };
rtn = jotai.atom(connStatus); rtn = jotai.atom(connStatus);
} else { } else {
@ -635,6 +636,7 @@ function getConnStatusAtom(conn: string): jotai.PrimitiveAtom<ConnStatus> {
error: null, error: null,
status: "disconnected", status: "disconnected",
hasconnected: false, hasconnected: false,
activeconnnum: 0,
}; };
rtn = jotai.atom(connStatus); rtn = jotai.atom(connStatus);
} }