resolver error in reloading menus. fixes #51

This commit is contained in:
mic 2024-05-14 08:26:42 +02:00
parent b9790b1619
commit cd4c08739b

View file

@ -46,7 +46,6 @@ export class mzta_Menus {
this.allPrompts.forEach((prompt) => {
this.addAction(prompt)
});
//await this.addMenu(this.rootMenu);
}
async reload(){
@ -55,8 +54,7 @@ export class mzta_Menus {
});
this.allPrompts = [];
this.rootMenu = [];
await this.initialize();
this.loadMenus(); //why is giving errors saying it's adding an id that is already there?
this.loadMenus();
}
addAction = (curr_prompt) => {