1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 14:16:46 +02:00

feat(fields): improve EntriesField logic - cleanup dump

This commit is contained in:
Awilum
2022-04-07 14:49:03 +03:00
parent 2ba37a2efa
commit c873cb6d17

View File

@@ -17,7 +17,7 @@ declare(strict_types=1);
use Glowy\Arrays\Arrays as Collection;
emitter()->addListener('onEntriesFetchSingleHasResult', static function (): void {
dump(entries()->registry()->get('methods.fetch.collection'));
if (! entries()->registry()->get('methods.fetch.collection.fields.entries.enabled')) {
return;
}