From 4e26f67b1dab6705bcc7f5ab1169a59a11588949 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 19 Mar 2023 15:21:27 -0400 Subject: [PATCH] *handle possibility that callerInput is undefined --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;