fix(core): JsonHelpers - Merge-JsonNamedValue
- would not properly set values when stored value equal to $false
This commit is contained in:
1 parent
385ed6dff5
commit
c0b4b0e4c1
1 file changed
+1
-1
@@ -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