Skip to content

Commit

Permalink
Fixed type error caused by route $action error getting
Browse files Browse the repository at this point in the history
  • Loading branch information
SouthWan committed Dec 17, 2024
1 parent f0bf395 commit c90e4d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Livewire/SlowRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ public function render(): Renderable
)->map(function ($row) {
[$method, $uri, $action] = json_decode($row->key, flags: JSON_THROW_ON_ERROR);

if (!is_string($action)){
$action = '';
}

return (object) [
'uri' => $uri,
'method' => $method,
Expand Down

0 comments on commit c90e4d7

Please sign in to comment.