Skip to content

Commit

Permalink
removes useless ancestorSchemas param in convert
Browse files Browse the repository at this point in the history
  • Loading branch information
ValJed committed Dec 30, 2024
1 parent 8b14eed commit 5de55e2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/@apostrophecms/schema/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -592,14 +592,12 @@ module.exports = {
{
fetchRelationships = true,
ancestors = [],
rootConvert = true,
ancestorSchemas = {}
rootConvert = true
} = {}
) {
const options = {
fetchRelationships,
ancestors,
ancestorSchemas
ancestors
};
if (Array.isArray(req)) {
throw new Error('convert invoked without a req, do you have one in your context?');
Expand Down

0 comments on commit 5de55e2

Please sign in to comment.