From 51bb491277160b0937ce5e5d006b8b07052908e5 Mon Sep 17 00:00:00 2001 From: Rebecca-Chou Date: Fri, 4 Mar 2022 17:08:52 +0800 Subject: [PATCH] fix undefined bug --- lib/team.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/team.ts b/lib/team.ts index d368e029..0467526a 100644 --- a/lib/team.ts +++ b/lib/team.ts @@ -45,8 +45,8 @@ export async function getExecNames() { const client = new Client({ url }); // position: name - let execMembers: { [name: string]: string }; - let formattedExec: string[]; + const execMembers: { [name: string]: string } = {}; + let formattedExec: string[] = []; try { await client.bind("", "");