mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-08 15:05:26 +02:00
Update src/controllers/pages.js
Co-Authored-By: cabad11 <44175180+cabad11@users.noreply.github.com>
This commit is contained in:
parent
c053e2ac0a
commit
c1738eb50f
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class Pages {
|
|||
* @param {string} parent - id of current page
|
||||
* @returns {Promise<Page[]>}
|
||||
*/
|
||||
static async getAllExceptChildrends(parent) {
|
||||
static async getAllExceptChildrens(parent) {
|
||||
let pagesAvailable = this.removeChildren(await Pages.getAll(), parent);
|
||||
|
||||
return pagesAvailable.filter((item) => item !== null);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue