From a84404258090e77cd90537531d10ef1379e48def Mon Sep 17 00:00:00 2001 From: Steve Faulkner <471400+southpolesteve@users.noreply.github.com> Date: Mon, 4 Jan 2021 10:09:24 -0600 Subject: [PATCH] Fix tables --- src/Platform/Hosted/HostedUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Platform/Hosted/HostedUtils.ts b/src/Platform/Hosted/HostedUtils.ts index 55abc41ec..506597f25 100644 --- a/src/Platform/Hosted/HostedUtils.ts +++ b/src/Platform/Hosted/HostedUtils.ts @@ -46,6 +46,6 @@ export function getDatabaseAccountKindFromExperience(apiExperience: string): str export function extractMasterKeyfromConnectionString(connectionString: string): string { // Only Gremlin uses the actual master key for connection to cosmos - const matchedParts: string[] = connectionString.match("AccountKey=(.*);ApiKind=Gremlin;$"); - return (matchedParts.length > 1 && matchedParts[1]) || undefined; + const matchedParts = connectionString.match("AccountKey=(.*);ApiKind=Gremlin;$"); + return (matchedParts && matchedParts.length > 1 && matchedParts[1]) || undefined; }