Skip to content

Commit 1e9fd05

Browse files
committed
fix: use nullish coalescing
1 parent 0df87b8 commit 1e9fd05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packages/core/tree/tree-item/tree-item-base/tree-item-element-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export abstract class UmbTreeItemElementBase<TreeItemModelType extends UmbTreeIt
109109
// Note: Currently we want to prevent opening when the item is in a selectable context, but this might change in the future.
110110
// 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'
111111
override render() {
112-
const label = this.localize.string(this._item?.name || '');
112+
const label = this.localize.string(this._item?.name ?? '');
113113
return html`
114114
<uui-menu-item
115115
@show-children=${this._onShowChildren}

0 commit comments

Comments
 (0)