Skip to content

Commit 240d235

Browse files
committed
Fix populateRunAutomationDetails for null environments
1 parent de611b2 commit 240d235

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

lib/upload-lib.js

Lines changed: 1 addition & 2 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: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ 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()) {
6059
automationID += `${entry[0]}:${entry[1]}/`; //automationID + entry[0] + ':' + entry[1] + '/';

0 commit comments

Comments
 (0)