diff options
-rw-r--r-- | ui.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui.js b/ui.js index dfb75ae..f5880df 100644 --- a/ui.js +++ b/ui.js @@ -254,7 +254,7 @@ class AppElement extends FocusElement { items: [ // A label that just shows some brief information about the item. isGroup && {label: - `("${item.name}" -` + + `(${item.name ? `"${item.name}"` : 'Unnamed'} -` + ` ${item.items.length} item${item.items.length === 1 ? '' : 's'}` + `, ${countTotalItems(item)} total` + ')'}, @@ -976,7 +976,7 @@ class GrouplikeListingElement extends Form { // within any groups (so you can't bworse a parent and access its menu // from there). if (!this.grouplike.isTheQueue) { - const ownElement = new BasicGrouplikeItemElement(`This group: ${this.grouplike.name}`) + const ownElement = new BasicGrouplikeItemElement(`This group: ${this.grouplike.name || '(Unnamed group)'}`) ownElement.item = this.grouplike ownElement.recordStore = this.recordStore ownElement.isGroup = true |