This commit is contained in:
2020-02-13 20:22:42 +00:00
parent 958b9c5032
commit 5aacb87a93
11 changed files with 9 additions and 352 deletions

View File

@@ -40,14 +40,6 @@ namespace AyaNova.DataList
//start with default
string JSONDataListTemplate = DataList.DefaultDataListDisplayTemplate;
var CustomDataListTemplate = await ct.DataListTemplate.FirstOrDefaultAsync(x => x.DataListKey == listOptions.DataListKey);
//Null is expected unless user has created a custom one
if (CustomDataListTemplate != null)
{
//Make sure it's valid, if not then don't use it
if (DataList.ValidateTemplate(CustomDataListTemplate.Template))
JSONDataListTemplate = CustomDataListTemplate.Template;
}