From cd4c08739b15be34ae66815b9da0b64435d514e1 Mon Sep 17 00:00:00 2001 From: mic Date: Tue, 14 May 2024 08:26:42 +0200 Subject: [PATCH] resolver error in reloading menus. fixes #51 --- js/mzta-menus.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/mzta-menus.js b/js/mzta-menus.js index a171bce5..eca5d653 100644 --- a/js/mzta-menus.js +++ b/js/mzta-menus.js @@ -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) => {