Skip to content

Commit

Permalink
Merge pull request #176 from thegalactiks/fix-listing-page-parent
Browse files Browse the repository at this point in the history
Fix listing page parent
  • Loading branch information
emmanuelgautier authored Feb 26, 2024
2 parents df77a8d + 9b9f136 commit fa1d2df
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .changeset/sweet-turkeys-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@galactiks/explorer": patch
---

Fix listing page parent
14 changes: 7 additions & 7 deletions packages/explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@
"zod": "3.22.4"
},
"devDependencies": {
"@babel/core": "^7.23.9",
"@babel/preset-env": "^7.23.9",
"@babel/preset-typescript": "^7.23.3",
"@babel/core": "7.23.9",
"@babel/preset-env": "7.23.9",
"@babel/preset-typescript": "7.23.3",
"@types/debug": "4.1.12",
"@types/jest": "^29.5.12",
"@types/jest": "29.5.12",
"@types/lodash.groupby": "4.6.9",
"@types/react": "18.2.58",
"babel-jest": "^29.7.0",
"jest": "^29.7.0",
"babel-jest": "29.7.0",
"jest": "29.7.0",
"schema-dts": "1.1.2",
"ts-jest": "^29.1.2"
"ts-jest": "29.1.2"
}
}
2 changes: 1 addition & 1 deletion packages/explorer/src/content/hydrate/listing-pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const computeRemainingListingPages =
const parentIdentifier = createIdentifierFromString(parent);

// If parent page does not exist, create it
if (isPageExists(parentIdentifier, _d.inLanguage, documents)) {
if (!isPageExists(parentIdentifier, _d.inLanguage, documents)) {
debug('Creating parent page', parent);
let translationOfWork: Id | undefined = undefined;
if (_d.translationOfWork && _d.translationOfWork['@id']) {
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fa1d2df

Please sign in to comment.