Skip to content

Commit

Permalink
update for test case
Browse files Browse the repository at this point in the history
  • Loading branch information
tyaginidhi committed Oct 16, 2024
1 parent 9fffb6c commit 556cbf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/client/utilities/commonUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export function getWorkSpaceName(websiteId: string): string {

// ENV_ID is the last part of the parameter value sent in the vscode URL from studio
export function getEnvironmentIdFromUrl() {
return (WebExtensionContext.urlParametersMap.get(queryParameters.ENV_ID) as string).split("/")?.pop() as string;
return (WebExtensionContext.urlParametersMap.get(queryParameters.ENV_ID))?.toString().split("/")?.pop() as string;
}

export function getBackToStudioURL() {
Expand Down

0 comments on commit 556cbf8

Please sign in to comment.