From 84202707bf80ef4e34432a233dacb9ac7e715757 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Wed, 22 Nov 2023 10:39:44 +0100 Subject: [PATCH] only render views if there is something to choose between --- .../core/collection/components/collection-view-bundle.element.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/collection/components/collection-view-bundle.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/collection/components/collection-view-bundle.element.ts index 557a729085..36be7956d9 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/collection/components/collection-view-bundle.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/collection/components/collection-view-bundle.element.ts @@ -51,6 +51,7 @@ export class UmbCollectionViewBundleElement extends UmbLitElement { } render() { if (!this._currentView) return nothing; + if (this._views.length <= 1) return nothing; return html`