diff --git a/classes/BlocksDatasource.php b/classes/BlocksDatasource.php index b1ea356..519f72e 100644 --- a/classes/BlocksDatasource.php +++ b/classes/BlocksDatasource.php @@ -20,7 +20,7 @@ public function __construct() BlockManager::instance()->getRegisteredBlocks(), // Get blocks existing in the autodatasource BlockManager::instance()->getBlocks()->map(function ($block) { - return ['name' => $block->name, 'path' => $block->getFilePath()]; + return ['name' => $block->id, 'path' => $block->getFilePath()]; })->pluck('path', 'name')->toArray() ); }