diff --git a/src/core/gui/Menu.ts b/src/core/gui/Menu.ts index c98a37cc..865e59ef 100644 --- a/src/core/gui/Menu.ts +++ b/src/core/gui/Menu.ts @@ -169,7 +169,7 @@ export class Menu extends Widget { private select_item(index: number): void { const item = this.items.val[index]; - if (!item) return; + if (item === undefined) return; this.selected.set_val(item, { silent: false }); this.visible.set_val(false, { silent: false });