Merge pull request #8366 from umbraco/v8/bugfix/improve-block-list-default-razor
Improve block list default razor view
This commit is contained in:
@@ -8,13 +8,6 @@
|
||||
{
|
||||
if (layout?.Udi == null) { continue; }
|
||||
var data = layout.Data;
|
||||
try
|
||||
{
|
||||
@Html.Partial("BlockList/Components/" + data.ContentType.Alias, layout)
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
global::Umbraco.Core.Composing.Current.Logger.Error(typeof(BlockListModel), ex, "Could not display block list component for content type {0}", data?.ContentType?.Alias);
|
||||
}
|
||||
@Html.Partial("BlockList/Components/" + data.ContentType.Alias, layout)
|
||||
}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user