Fix undefined environment
This commit is contained in:
parent
a1176686f1
commit
0c0bc0e6c6
3 changed files with 3 additions and 3 deletions
|
|
@ -439,7 +439,7 @@ export function computeAutomationID(
|
|||
let automationID = `${analysis_key}/`;
|
||||
|
||||
// the id has to be deterministic so we sort the fields
|
||||
if (environment) {
|
||||
if (environment !== undefined && environment !== "null") {
|
||||
const environmentObject = JSON.parse(environment);
|
||||
for (const entry of Object.entries(environmentObject).sort()) {
|
||||
if (typeof entry[1] === "string") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue