fix some routing problems

This commit is contained in:
2021-11-07 13:51:45 +01:00
parent a281b16a48
commit ca8cb0d856
8 changed files with 150 additions and 100 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ namespace zero.Web.Controllers
{
IReadOnlyCollection<PageType> pageTypes = Options.Pages.GetAllItems();
Dictionary<string, Page> pages = await Collection.GetByIds(ids.ToArray());
Dictionary<Page, Route> routes = await Routes.GetRoutes(pages.Where(x => x.Value != null).Select(x => x.Value));
Dictionary<Page, Route> routes = await Routes.GetRoutes(pages.Where(x => x.Value != null).Select(x => x.Value).ToArray());
return Previews(pages, item =>
{