Skip to content

Commit 0ece0d0

Browse files
committed
Fix populateRunAutomationDetails for null environments
1 parent de611b2 commit 0ece0d0

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

lib/upload-lib.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-lib.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/upload-lib.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,10 @@ export function populateRunAutomationDetails(
5353
let automationID = `${analysis_key}/`;
5454

5555
// the id has to be deterministic so we sort the fields
56-
if (environment !== undefined) {
57-
console.log(environment);
56+
if (environment !== undefined && environment !== "null") {
5857
const environmentObject = JSON.parse(environment);
5958
for (const entry of Object.entries(environmentObject).sort()) {
60-
automationID += `${entry[0]}:${entry[1]}/`; //automationID + entry[0] + ':' + entry[1] + '/';
59+
automationID += `${entry[0]}:${entry[1]}/`;
6160
}
6261
}
6362

0 commit comments

Comments
 (0)