Skip to content

Commit 8fa1fcf

Browse files
committed
refactor: Update Server model getContainers method to use collect() for containers and containerReplicates
1 parent fa28e95 commit 8fa1fcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Models/Server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,8 +715,8 @@ public function getContainers()
715715
}
716716

717717
return [
718-
'containers' => $containers ?? collect([]),
719-
'containerReplicates' => $containerReplicates ?? collect([]),
718+
'containers' => collect($containers) ?? collect([]),
719+
'containerReplicates' => collect($containerReplicates) ?? collect([]),
720720
];
721721
}
722722

0 commit comments

Comments
 (0)