From 90213ec90de6a3cac593a446b5dc5754a0dd5458 Mon Sep 17 00:00:00 2001 From: Claus Date: Thu, 10 Aug 2017 15:26:03 +0200 Subject: [PATCH] no need to check twice if we just dont send any hidden children to the render method. --- .../ListDescendantsFromCurrentPage.cshtml | 32 +++++++++++-------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/ListDescendantsFromCurrentPage.cshtml b/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/ListDescendantsFromCurrentPage.cshtml index b39eaf0c61..8105cfd972 100755 --- a/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/ListDescendantsFromCurrentPage.cshtml +++ b/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/ListDescendantsFromCurrentPage.cshtml @@ -1,6 +1,6 @@ +@inherits Umbraco.Web.Mvc.UmbracoTemplatePage @using Umbraco.Core.Models @using Umbraco.Web -@inherits Umbraco.Web.Mvc.UmbracoTemplatePage @* This snippet creates links for every single page (no matter how deep) below @@ -16,7 +16,7 @@ var naviLevel = selection[0].Level; @* Add in level for a CSS hook *@ -