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

Commit 6e41aa1

Browse files
committed
Fix reference
1 parent 4d7dd27 commit 6e41aa1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

api/wordpress/_global/getPostTypeStaticProps.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import getPostTypeById from './getPostTypeById'
33
import getPostTypeArchive from './getPostTypeArchive'
44
import {addApolloState} from '@/api/apolloConfig'
55
import getFrontendPage, {frontendPageSeo} from './getFrontendPage'
6-
import getSettingsCustomPage, {customPageQuery} from './getSettingsCustomPage'
6+
import getSettingsCustomPage, {
7+
customPageQuerySeo
8+
} from './getSettingsCustomPage'
79

810
/**
911
* Retrieve static props by post type.
@@ -79,7 +81,7 @@ export default async function getPostTypeStaticProps(
7981
const slug = Array.isArray(params.slug) ? params.slug.join('/') : params.slug
8082

8183
/* -- Handle pages set via Additional Settings. -- */
82-
if (Object.keys(customPageQuery).includes(slug)) {
84+
if (Object.keys(customPageQuerySeo).includes(slug)) {
8385
const {apolloClient, ...pageData} = await getSettingsCustomPage(slug)
8486

8587
// Display 404 error page if error encountered.

0 commit comments

Comments
 (0)