Skip to content

Commit

Permalink
Ensure wire keys are unique
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher committed Nov 3, 2023
1 parent ab91bfa commit 352bdf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/livewire/slow-outgoing-requests.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class="min-h-full flex flex-col"
<tbody>
@foreach ($slowOutgoingRequests->take(100) as $request)
<tr class="h-2 first:h-0"></tr>
<tr wire:key="{{ $request->uri }}">
<tr wire:key="{{ $request->method.$request->uri }}">
<x-pulse::td>
<x-pulse::http-method-badge :method="$request->method" />
</x-pulse::td>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/slow-queries.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class="min-h-full flex flex-col"
<tbody>
@foreach ($slowQueries->take(100) as $query)
<tr class="h-2 first:h-0"></tr>
<tr wire:key="{{ md5($query->sql) }}">
<tr wire:key="{{ md5($query->sql.$query->location) }}">
<x-pulse::td class="!p-0 truncate max-w-[1px]">
<div class="relative">
<div class="bg-gray-700 dark:bg-gray-800 py-4 rounded-md text-gray-100 block text-xs whitespace-nowrap overflow-x-auto [scrollbar-color:theme(colors.gray.500)_transparent] [scrollbar-width:thin]">
Expand Down

0 comments on commit 352bdf2

Please sign in to comment.