refactor: move GrapQL fragments

This commit is contained in:
Arvid Norlin
2024-04-11 13:15:34 +02:00
parent ff8ea6d86a
commit 4b486ab344
3 changed files with 44 additions and 42 deletions

View File

@@ -55,7 +55,7 @@ export default async function MyPagesLayout({
}
})
}
// navigation_my_pages is of type Single, hence the hard [0]
const navigation = response.data.all_navigation_my_pages.items[0]
const menuItems = mapMenuItems(navigation.items)