Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Commit fe5ea8e

Browse files
committed
fix: premature return
1 parent d96ddee commit fe5ea8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Our.Umbraco.DocTypeGridEditor/Helpers/DocTypeGridEditorHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,11 @@ public IHtmlContent RenderDocTypeGridEditorItem(
234234
bool isPreview = false)
235235
{
236236
if (content == null)
237+
{
237238
_logger.LogError("Failed rendering DocTypeGridEditorItem. " +
238239
"content is null");
239240
return new HtmlString("");
241+
}
240242

241243
// get view path
242244
if (!TryGetViewPath(htmlHelper.ViewContext, editorAlias, content.ContentType.Alias, viewPath, previewViewPath, isPreview, out string fullViewPath))

0 commit comments

Comments
 (0)