From 3a77e71443e0c54ddaf04745b2e24f1c23f3a32b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 12 May 2022 20:58:14 -0400 Subject: [PATCH] lint: fix semicolon --- src/controllers/admin/categories.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/admin/categories.js b/src/controllers/admin/categories.js index 4389fe071b..e854f5898d 100644 --- a/src/controllers/admin/categories.js +++ b/src/controllers/admin/categories.js @@ -77,7 +77,7 @@ categoriesController.getAll = async function (req, res) { if (c.children) { c.subCategoriesLeft = Math.max(0, c.children.length - c.subCategoriesPerPage); c.hasMoreSubCategories = c.children.length > c.subCategoriesPerPage; - c.showMorePage = Math.ceil(c.subCategoriesPerPage / meta.config.categoriesPerPage) + c.showMorePage = Math.ceil(c.subCategoriesPerPage / meta.config.categoriesPerPage); c.children = c.children.slice(0, c.subCategoriesPerPage); c.children.forEach(c => trim(c)); }