*handle possibility that callerInput is undefined

This commit is contained in:
Derrick Hammer 2023-03-19 15:21:27 -04:00
parent 623f800418
commit 4e26f67b1d
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ async function createNetwork(def = true): Promise<number> {
}
async function getNetwork(aq: ActiveQuery): Promise<RpcNetwork> {
const { network = null } = aq.callerInput;
const { network = null } = aq?.callerInput ?? {};
await moduleReady;