From c9054e7d8cec050a6e7d88e39fb409728433197a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Korczak?= Date: Sun, 17 Mar 2024 18:27:01 +0100 Subject: [PATCH] fix: empty get logs number of lines --- app/Livewire/Project/Shared/GetLogs.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Livewire/Project/Shared/GetLogs.php b/app/Livewire/Project/Shared/GetLogs.php index 5a2053fc4..62d977488 100644 --- a/app/Livewire/Project/Shared/GetLogs.php +++ b/app/Livewire/Project/Shared/GetLogs.php @@ -79,6 +79,9 @@ class GetLogs extends Component } } if (!$refresh && ($this->resource?->getMorphClass() === 'App\Models\Service' || str($this->container)->contains('-pr-'))) return; + if (!$this->numberOfLines) { + $this->numberOfLines = 1000; + } if ($this->container) { if ($this->showTimeStamps) { if ($this->server->isSwarm()) {