Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 7583783

Browse files
committed
Remove menu handling from static props
1 parent 1726f1f commit 7583783

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

api/wordpress/_global/getPostTypeStaticProps.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import {algoliaIndexName} from '@/api/algolia/connector'
22
import getPostTypeById from './getPostTypeById'
33
import getPostTypeArchive from './getPostTypeArchive'
44
import {addApolloState} from '@/api/apolloConfig'
5-
import getMenus from '@/api/wordpress/menus/getMenus'
6-
import config from '@/functions/config'
75
import getFrontendPage, {frontendPageSeo} from './getFrontendPage'
86

97
/**
@@ -20,15 +18,11 @@ export default async function getPostTypeStaticProps(
2018
// preview = false, // TODO - add preview handling.
2119
// previewData = null
2220
) {
23-
// Get WP Nav Menus.
24-
const menus = await getMenus(config.menuLocations)
25-
2621
// Set revalidate length (seconds).
2722
const revalidate = 60 * 5
2823

2924
// Set sharedProps.
3025
const sharedProps = {
31-
menus,
3226
algolia: {
3327
indexName: algoliaIndexName
3428
}

0 commit comments

Comments
 (0)