fix: make intent of scopeTarget check more clear

This commit is contained in:
Jeffrey
2026-08-16 21:27:40 +02:00
parent f763390d53
commit 78e1d601b0
+1 -1
View File
@@ -674,7 +674,7 @@ function Show-MainWindow {
Add-Parameter 'Apps' ($selectedApps -join ',')
$scopeTarget = Get-AppRemovalScopeTarget -AppRemovalScopeCombo $appRemovalScopeCombo -OtherUsernameTextBox $otherUsernameTextBox
if ($scopeTarget) {
if (-not [string]::IsNullOrWhiteSpace($scopeTarget)) {
Add-Parameter 'AppRemovalTarget' $scopeTarget
}
}