fix: use nullish coalescing

This commit is contained in:
Jacob Overgaard
2024-07-25 17:38:36 +02:00
parent c2e2bfe741
commit 30ec98f6e5

View File

@@ -109,7 +109,7 @@ export abstract class UmbTreeItemElementBase<TreeItemModelType extends UmbTreeIt
// Note: Currently we want to prevent opening when the item is in a selectable context, but this might change in the future.
// If we like to be able to open items in selectable context, then we might want to make it as a menu item action, so you have to click ... and chose an action called 'Edit'
override render() {
const label = this.localize.string(this._item?.name || '');
const label = this.localize.string(this._item?.name ?? '');
return html`
<uui-menu-item
@show-children=${this._onShowChildren}