Update BlocksComponent.php

Visibility fixed for subdirectory