mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-08 06:55:26 +02:00
fix: fix variable name
This commit is contained in:
parent
5a1be35d71
commit
8a7242d364
1 changed files with 3 additions and 3 deletions
|
@ -12,11 +12,11 @@ const router = express.Router();
|
|||
router.get('/page/new', verifyToken, allowEdit, async (req: Request, res: Response, next: NextFunction) => {
|
||||
try {
|
||||
const pagesAvailable = await Pages.getAll();
|
||||
const sortedPagesAvailable = Pages.sortByTimeDesc(pagesAvailable);
|
||||
const groupedPagesAvailable = Pages.groupByParent(sortedPagesAvailable);
|
||||
const pagesAvailableSorted = Pages.sortByTimeDesc(pagesAvailable);
|
||||
const pagesAvailableGrouped = Pages.groupByParent(pagesAvailableSorted);
|
||||
|
||||
res.render('pages/form', {
|
||||
groupedPagesAvailable,
|
||||
pagesAvailableGrouped,
|
||||
page: null,
|
||||
});
|
||||
} catch (error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue