only render views if there is something to choose between

This commit is contained in:
Mads Rasmussen
2023-11-22 10:39:44 +01:00
parent 5aab4b3ca7
commit 84202707bf

View File

@@ -51,6 +51,7 @@ export class UmbCollectionViewBundleElement extends UmbLitElement {
}
render() {
if (!this._currentView) return nothing;
if (this._views.length <= 1) return nothing;
return html`
<uui-button compact popovertarget="collection-view-bundle-popover" label="status">