Skip to content

Commit

Permalink
Fix infinite loop on listing table of mounted collection
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Nov 6, 2023
1 parent a0b78df commit 4d4eadc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entries/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ public function augmentedArrayData()
'handle' => $this->handle(),
];

if (! Statamic::isApiRoute()) {
if (! Statamic::isApiRoute() && ! Statamic::isCpRoute()) {
$data['mount'] = $this->mount();
}

Expand Down

0 comments on commit 4d4eadc

Please sign in to comment.