*handle possibility that callerInput is undefined
This commit is contained in:
parent
623f800418
commit
4e26f67b1d
|
@ -96,7 +96,7 @@ async function createNetwork(def = true): Promise<number> {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getNetwork(aq: ActiveQuery): Promise<RpcNetwork> {
|
async function getNetwork(aq: ActiveQuery): Promise<RpcNetwork> {
|
||||||
const { network = null } = aq.callerInput;
|
const { network = null } = aq?.callerInput ?? {};
|
||||||
|
|
||||||
await moduleReady;
|
await moduleReady;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue