diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/section/section-main-views/section-main-views.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/section/section-main-views/section-main-views.element.ts index c1ceca23f3..1fe1004f6e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/section/section-main-views/section-main-views.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/section/section-main-views/section-main-views.element.ts @@ -102,7 +102,8 @@ export class UmbSectionMainViewElement extends UmbLitElement { } #renderDashboards() { - return this._dashboards.length > 0 + // Only show dashboards if there are more than one dashboard or if there are both dashboards and views + return (this._dashboards.length > 0 && this._views.length > 0) || this._dashboards.length > 1 ? html` ${this._dashboards.map((dashboard) => { @@ -121,7 +122,8 @@ export class UmbSectionMainViewElement extends UmbLitElement { } #renderViews() { - return this._views.length > 0 + // Only show views if there are more than one view or if there are both dashboards and views + return (this._views.length > 0 && this._dashboards.length > 0) || this._views.length > 1 ? html` ${this._views.map((view) => {