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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user