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

Commit a84fa28

Browse files
Merge pull request #29 from cheeseytoastie/develop
Issue #28 - patch to stop exception shown to visitors
2 parents fdc4617 + 91eb1fb commit a84fa28

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Src/Our.Umbraco.DocTypeGridEditor/Web/UI/App_Plugins/DocTypeGridEditor/Render/DocTypeGridEditor.cshtml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
string viewPath = Model.editor.config.viewPath.ToString();
1212
string previewViewPath = Model.editor.config.previewViewPath.ToString();
1313

14-
var content = DocTypeGridEditorHelper.ConvertValueToContent(id, docType, value);
15-
16-
@Html.RenderDocTypeGridEditorItem(content, viewPath, previewViewPath)
14+
if(docType != "")
15+
{
16+
var content = DocTypeGridEditorHelper.ConvertValueToContent(id, docType, value);
17+
18+
@Html.RenderDocTypeGridEditorItem(content, viewPath)
19+
}
1720
}

0 commit comments

Comments
 (0)