Commit 45dcc9a
committed
Expose sortBy in loadConfig allowlist
`loadConfig` builds its output from an explicit allowlist, so the new
`sortBy` key from `config.default.yaml` was silently dropped. That made
`siteMetadata.sortBy` undefined at build time, which in turn caused
Gatsby's schema inference to omit the field — and the GraphQL query
in `useConfigAndConceptSchemes` failed CI with
`Cannot query field "sortBy" on type "SiteSiteMetadata"`.
Add `sortBy` to the allowlist (default "prefLabel") and update the
config snapshot test.1 parent 1cf5d2d commit 45dcc9a
2 files changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
0 commit comments