resolver error in reloading menus. fixes #51
This commit is contained in:
parent
b9790b1619
commit
cd4c08739b
1 changed files with 1 additions and 3 deletions
|
|
@ -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) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue