Skip to content

Commit

Permalink
fix: browse tree ancestors not converted in mariadb
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed Apr 24, 2020
1 parent e0a0434 commit 7c59bfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/graph/resolvers/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down
4 changes: 3 additions & 1 deletion server/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,9 @@ module.exports = () => {
kind: 'link',
label: 'Home',
target: '/',
targetType: 'home'
targetType: 'home',
visibilityMode: 'all',
visibilityGroups: null
}
]
}
Expand Down

0 comments on commit 7c59bfe

Please sign in to comment.