menu.updateItem cannot find ID

I’m trying to create a menu with subitems where I can change the label dynamically.
The problem is that menu.updateItem() does not appear to work with the submenu ID.
See https://snippet.webix.com/7lsbmxop

Hello @Chrisiaan ,
You need to use getMenu method and then updateItem:

$$('menu').getMenu(id).updateItem(id, {value:"New value"});

Please check the next snippet:
https://snippet.webix.com/zb6jw8mx

Perfect! Thank you

I was confused because contextmenu.updateItem() does work like in my earlier snippet, without the getMenu().