diff --git a/src/index.ts b/src/index.ts index fb7af35..ae57fde 100644 --- a/src/index.ts +++ b/src/index.ts @@ -96,7 +96,7 @@ async function createNetwork(def = true): Promise { } async function getNetwork(aq: ActiveQuery): Promise { - const { network = null } = aq.callerInput; + const { network = null } = aq?.callerInput ?? {}; await moduleReady;