fix: numberoflines should be number

This commit is contained in:
Andras Bacsai
2024-08-23 20:42:58 +02:00
parent dfa30bbb7f
commit b12f768c56
2 changed files with 6 additions and 6 deletions

View File

@@ -97,7 +97,7 @@ class GetLogs extends Component
if (! $refresh && ($this->resource?->getMorphClass() === 'App\Models\Service' || str($this->container)->contains('-pr-'))) {
return;
}
if (! $this->numberOfLines) {
if ($this->numberOfLines <= 0) {
$this->numberOfLines = 1000;
}
if ($this->container) {