Skip to content

Commit

Permalink
Closes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysanthos committed Feb 2, 2024
1 parent 83ee911 commit e56c485
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Livewire/Requests.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ public function render()
'count',
));

$requestCollection = $requests['request'] ?? collect();

if (Livewire::isLivewireRequest()) {
$this->dispatch('requests-chart-update', requests: $requests['request']);
$this->dispatch('requests-chart-update', requests: $requestCollection);
}

return View::make('requests::livewire.requests', [
'requests' => $requests['request'],
'requests' => $requestCollection,
'time' => $time,
'runAt' => $runAt,
'config' => Config::get('pulse.recorders.'.RequestRecorder::class),
Expand Down

0 comments on commit e56c485

Please sign in to comment.