Fixed the check for _items falsey

as it had an empty array value.
Checking whether the array has any items instead.

Otherwise an empty table will be displayed.
This commit is contained in:
leekelleher
2024-03-18 10:23:02 +00:00
parent 92cb9520f2
commit 145260cea1

View File

@@ -53,7 +53,7 @@ export class UmbDocumentTrackedReferenceTableElement extends UmbLitElement {
}
#renderTable() {
if (!this._items) return nothing;
if (this._items?.length === 0) return nothing;
return html`
<uui-box headline=${this.localize.term('references_labelDependsOnThis')} style="--uui-box-default-padding:0">
<uui-table>