From 4d4eadcc5be317bdfe1e7ba5d313b662372e632a Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Mon, 6 Nov 2023 12:57:07 +0000 Subject: [PATCH] Fix infinite loop on listing table of mounted collection --- src/Entries/Collection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entries/Collection.php b/src/Entries/Collection.php index 00998ce0ba..e5cdb3d688 100644 --- a/src/Entries/Collection.php +++ b/src/Entries/Collection.php @@ -851,7 +851,7 @@ public function augmentedArrayData() 'handle' => $this->handle(), ]; - if (! Statamic::isApiRoute()) { + if (! Statamic::isApiRoute() && ! Statamic::isCpRoute()) { $data['mount'] = $this->mount(); }