diff --git a/server/graph/resolvers/page.js b/server/graph/resolvers/page.js index 28b2b4a1..53275ff7 100644 --- a/server/graph/resolvers/page.js +++ b/server/graph/resolvers/page.js @@ -227,7 +227,7 @@ module.exports = { } else { builder.where('parent', args.parent) if (args.includeAncestors && curPage && curPage.ancestors.length > 0) { - builder.orWhereIn('id', curPage.ancestors) + builder.orWhereIn('id', _.isString(curPage.ancestors) ? JSON.parse(curPage.ancestors) : curPage.ancestors) } } }).orderBy([{ column: 'isFolder', order: 'desc' }, 'title']) diff --git a/server/setup.js b/server/setup.js index d95225b0..f973ad59 100644 --- a/server/setup.js +++ b/server/setup.js @@ -323,7 +323,9 @@ module.exports = () => { kind: 'link', label: 'Home', target: '/', - targetType: 'home' + targetType: 'home', + visibilityMode: 'all', + visibilityGroups: null } ] }