Skip to content

Commit 359ea31

Browse files
committed
Update Invoke-ListScheduledItems.ps1
1 parent e1cd451 commit 359ea31

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Scheduler/Invoke-ListScheduledItems.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,18 @@ function Invoke-ListScheduledItems {
8989
}
9090
$Task | Add-Member -NotePropertyName TenantGroupInfo -NotePropertyValue $TenantGroupForDisplay -Force
9191
# Update the tenant to show the group object for proper formatting
92-
$Task.Tenant = @($TenantGroupForDisplay)
92+
$Task.Tenant = $TenantGroupForDisplay
9393
}
9494
} catch {
9595
Write-Warning "Failed to parse tenant group information for task $($Task.RowKey): $($_.Exception.Message)"
9696
# Fall back to keeping original tenant value
9797
}
9898
} else {
99-
$Task.Tenant = @($Task.Tenant)
99+
$Task.Tenant = [PSCustomObject]@{
100+
label = $Task.Tenant
101+
value = $Task.Tenant
102+
type = 'Tenant'
103+
}
100104
}
101105

102106
$Task

0 commit comments

Comments
 (0)