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

Commit 12ac3d2

Browse files
committed
Add default data and alias to 404 query
1 parent 6915bbb commit 12ac3d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api/wordpress/pages/queryError404Page.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import {gql} from '@apollo/client'
22
import {singlePageFragment} from './queryPageById'
3+
import defaultPageData from '../_partials/defaultPageData'
34

45
// Query: retrieve 404 error page.
56
const queryError404Page = gql`
67
query GET_ERROR_404_PAGE($imageSize: MediaItemSizeEnum = LARGE) {
8+
${defaultPageData}
79
additionalSettings {
810
additionalSettings {
9-
error404Page {
11+
page: error404Page {
1012
... on Page {
1113
...SinglePageFields
1214
}

0 commit comments

Comments
 (0)