mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 09:20:16 +00:00
Fix tables
This commit is contained in:
@@ -46,6 +46,6 @@ export function getDatabaseAccountKindFromExperience(apiExperience: string): str
|
|||||||
|
|
||||||
export function extractMasterKeyfromConnectionString(connectionString: string): string {
|
export function extractMasterKeyfromConnectionString(connectionString: string): string {
|
||||||
// Only Gremlin uses the actual master key for connection to cosmos
|
// Only Gremlin uses the actual master key for connection to cosmos
|
||||||
const matchedParts: string[] = connectionString.match("AccountKey=(.*);ApiKind=Gremlin;$");
|
const matchedParts = connectionString.match("AccountKey=(.*);ApiKind=Gremlin;$");
|
||||||
return (matchedParts.length > 1 && matchedParts[1]) || undefined;
|
return (matchedParts && matchedParts.length > 1 && matchedParts[1]) || undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user