Skip to content

Commit 0e682d5

Browse files
authored
Merge pull request #14 from SanderMuller/main
Fix Property [$rows] not found on component pulse-slow-jobs
2 parents 72c4ad4 + 414b29a commit 0e682d5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

config/filament-laravel-pulse.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
'md' => 5,
122122
'xl' => 5,
123123
],
124+
'rows' => 2,
124125
'cols' => 'full',
125126
'ignoreAfter' => '1 day',
126127
'isDiscovered' => true,

src/Widgets/PulseSlowJobs.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ class PulseSlowJobs extends Widget
1414

1515
protected string $ignoreAfter;
1616

17+
protected int $rows;
18+
1719
public function __construct()
1820
{
1921
$config = config('filament-laravel-pulse.components.slow-jobs');
2022
$this->columnSpan = $config['columnSpan'] ?? [
2123
'md' => 5,
2224
'xl' => 5,
2325
];
26+
$this->rows = $config['rows'] ?? 2;
2427
$this->cols = $config['cols'] ?? 'full';
2528
$this->ignoreAfter = $config['ignoreAfter'] ?? '1 hour';
2629
self::$isDiscovered = $config['isDiscovered'] ?? true;

0 commit comments

Comments
 (0)