fix(core): JsonHelpers - Merge-JsonNamedValue
- would not properly set values when stored value equal to $false
This commit is contained in:
@@ -61,7 +61,7 @@ function Merge-JsonNamedValue
|
||||
$Value
|
||||
)
|
||||
|
||||
if (!$Destination.$Name)
|
||||
if (!($Destination | Get-Member -Name $Name))
|
||||
{
|
||||
$Destination |
|
||||
Add-Member -Name $Name -Value $Value -MemberType NoteProperty
|
||||
|
Reference in New Issue
Block a user