Skip to content

Commit 8ed3396

Browse files
authored
Merge pull request #292 from KelvinTegelaar/master
[pull] master from KelvinTegelaar:master
2 parents 0aa9c68 + 131fe26 commit 8ed3396

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Standards/Invoke-listStandardTemplates.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ function Invoke-listStandardTemplates {
2929
return
3030
}
3131
$Data | Add-Member -NotePropertyName 'GUID' -NotePropertyValue $_.GUID -Force
32+
33+
if (!$Data.excludedTenants) {
34+
$Data | Add-Member -NotePropertyName 'excludedTenants' -NotePropertyValue @() -Force
35+
}
36+
3237
if ($Data.excludedTenants -and $Data.excludedTenants -ne 'excludedTenants') {
3338
$Data.excludedTenants = @($Data.excludedTenants)
3439
} else {

0 commit comments

Comments
 (0)