Skip to content

Nested key value not returning if environment is not specified #114

@bmarotta

Description

@bmarotta

If using environments, a nested key value won't return if not defined for the specified environment.

Example

{
"myData": { "myValue": "value" },
"development": { "myData": { "myValue": "otherValue" } }
}

The above example will return correctly "myData.myValue" if the environment is "development", but will return null if the environment is production.

The problem is a missing else for the if statement on line 272
if (this.environmentExists())

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions