Merge pull request 'feature/my-menu-query' (!112) from wbuezas/hedera-web-mindshore:feature/my-menu-query into beta
gitea/hedera-web/pipeline/head There was a failure building this commit
Details
gitea/hedera-web/pipeline/head There was a failure building this commit
Details
Reviewed-on: #112 Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
This commit is contained in:
commit
f19457f162
|
@ -32,7 +32,10 @@ export const useAppStore = defineStore('hedera', {
|
||||||
}),
|
}),
|
||||||
actions: {
|
actions: {
|
||||||
async getMenuLinks() {
|
async getMenuLinks() {
|
||||||
const sections = await jApi.query('SELECT * FROM myMenu');
|
const { data: sections } = await api.get('MyMenus');
|
||||||
|
|
||||||
|
if (!sections) return;
|
||||||
|
|
||||||
const sectionMap = new Map();
|
const sectionMap = new Map();
|
||||||
for (const section of sections) {
|
for (const section of sections) {
|
||||||
sectionMap.set(section.id, section);
|
sectionMap.set(section.id, section);
|
||||||
|
|
Loading…
Reference in New Issue