Update API Scaffold call to remove the List View app, now the alias has changed

This commit is contained in:
Warren Buckley
2018-09-14 10:53:59 +01:00
parent cd151ac19a
commit 41fd9afab5
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -359,7 +359,7 @@ namespace Umbraco.Web.Editors
var mapped = MapToDisplay(emptyContent);
//remove the listview app if it exists
mapped.ContentApps = mapped.ContentApps.Where(x => x.Alias != "childItems").ToList();
mapped.ContentApps = mapped.ContentApps.Where(x => x.Alias != "umbListView").ToList();
return mapped;
}
@@ -380,7 +380,7 @@ namespace Umbraco.Web.Editors
var mapped = Mapper.Map<ContentItemDisplay>(blueprint);
//remove the listview app if it exists
mapped.ContentApps = mapped.ContentApps.Where(x => x.Alias != "childItems").ToList();
mapped.ContentApps = mapped.ContentApps.Where(x => x.Alias != "umbListView").ToList();
return mapped;
}
+1 -1
View File
@@ -85,7 +85,7 @@ namespace Umbraco.Web.Editors
var mapped = Mapper.Map<MediaItemDisplay>(emptyContent);
//remove the listview app if it exists
mapped.ContentApps = mapped.ContentApps.Where(x => x.Alias != "childItems").ToList();
mapped.ContentApps = mapped.ContentApps.Where(x => x.Alias != "umbListView").ToList();
return mapped;
}