Skip to content

Commit

Permalink
allow both valid aliases for "any page type"
Browse files Browse the repository at this point in the history
  • Loading branch information
boutell committed Dec 12, 2024
1 parent 7c43d5a commit 6b9794f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/methods/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ module.exports = self => {
}

function relatedTypesIncludes(name) {
if (name === '@apostrophecms/any-page-type') {
if ([ '@apostrophecms/any-page-type', '@apostrophecms/page' ].includes(name)) {
return relatedTypes.some(type => {
const module = self.apos.modules[type];
return self.apos.instanceOf(module, '@apostrophecms/page-type');
Expand Down

0 comments on commit 6b9794f

Please sign in to comment.