Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Commit

Permalink
Fix n+1 case in get crawled pages queryg
Browse files Browse the repository at this point in the history
  • Loading branch information
gharbat committed May 31, 2023
1 parent 2d8c44f commit f2c0556
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend-server/resources/views/settings-data.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,9 @@ class="text-sm divide-y divide-slate-200 border-b border-slate-200">
<!-- Row -->
@php
/** @var \App\Models\CrawledPages $page */
$pages = $source->getCrawledPages()->get();
@endphp
@foreach($source->getCrawledPages()->get() as $page)
@foreach($pages as $page)
<tr>
<td class="px-2 first:pl-5 last:pr-5 py-3 whitespace-nowrap md:w-1/2">
<div class="flex items-center">
Expand Down

0 comments on commit f2c0556

Please sign in to comment.