diff --git a/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Views/Shared/Components/Theme/MainNavbar/Menu/Default.cshtml b/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Views/Shared/Components/Theme/MainNavbar/Menu/Default.cshtml index 16197ddf1f..32a62b0d49 100644 --- a/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Views/Shared/Components/Theme/MainNavbar/Menu/Default.cshtml +++ b/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Views/Shared/Components/Theme/MainNavbar/Menu/Default.cshtml @@ -1,11 +1,10 @@ -@using System -@using Volo.Abp.UI.Navigation +@using Volo.Abp.UI.Navigation @model ApplicationMenu @foreach (var menuItem in Model.Items) { if (menuItem.IsLeaf) { - if (menuItem.Url.IsNullOrEmpty()) + if (menuItem.Url == null) { continue; }