From 381967c8cfeeeaa9f87027aeb236f88bdf87c494 Mon Sep 17 00:00:00 2001 From: Mykhailo-Roit <88772563+Mykhailo-Roit@users.noreply.github.com> Date: Thu, 9 Jan 2025 15:40:21 +0200 Subject: [PATCH] fix conditions --- Extensions/MSGraph.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Extensions/MSGraph.psm1 b/Extensions/MSGraph.psm1 index 8862005..0b07e62 100644 --- a/Extensions/MSGraph.psm1 +++ b/Extensions/MSGraph.psm1 @@ -2357,7 +2357,7 @@ function Reset-GraphObject # Clone the object before removing properties $obj = $fileObj.Object | ConvertTo-Json -Depth 50 | ConvertFrom-Json Start-GraphPreImport $obj $objectType - if ($global:cbImportType.SelectedValue -eq "replace"){ + if ($global:cbImportType.SelectedValue -ne "replace_with_assignments"){ # will use the assignments from the file for "replace_with_assignments" type Remove-Property $obj "Assignments" }