diff --git a/resources/views/livewire/team/danger-zone.blade.php b/resources/views/livewire/team/danger-zone.blade.php
index 84bf9fe5c..ade512a6f 100644
--- a/resources/views/livewire/team/danger-zone.blade.php
+++ b/resources/views/livewire/team/danger-zone.blade.php
@@ -75,7 +75,7 @@ class="rounded-lg border border-red-300 bg-red-50 p-4 ring-1 ring-inset ring-red
'Projects' => currentTeam()->projects,
'Servers' => currentTeam()->servers,
'Private keys' => currentTeam()->privateKeys,
- 'Sources' => currentTeam()->sources,
+ 'Sources' => currentTeam()->sources(),
] as $label => $resources)
@if ($resources->isNotEmpty())
diff --git a/tests/Feature/TeamSettingsNavigationTest.php b/tests/Feature/TeamSettingsNavigationTest.php
index 2597edc1b..d6b6f72cf 100644
--- a/tests/Feature/TeamSettingsNavigationTest.php
+++ b/tests/Feature/TeamSettingsNavigationTest.php
@@ -28,7 +28,9 @@
expect(file_get_contents(resource_path('views/livewire/team/danger-zone.blade.php')))
->toContain('Delete team')
->toContain('status="Permanent"')
- ->toContain('border-red-300');
+ ->toContain('border-red-300')
+ ->toContain("'Sources' => currentTeam()->sources()")
+ ->not->toContain("'Sources' => currentTeam()->sources,");
expect(file_get_contents(resource_path('views/livewire/switch-team.blade.php')))
->toContain('New team')
->toContain('team-switcher-create-expanded')