Skip to content

Commit

Permalink
Add fix for mishandling block name as id (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxwilko authored Oct 28, 2024
1 parent 9c91169 commit ec86098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/BlocksDatasource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
}
Expand Down

0 comments on commit ec86098

Please sign in to comment.