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