From c9358bdddbc766a9b098ac6be50ccd14d9149420 Mon Sep 17 00:00:00 2001 From: Naz Date: Mon, 30 Aug 2021 12:11:16 +0400 Subject: [PATCH] Removed eccessive parameter in map method call no issue - There are only two parameters in `map` method. The one used here was probably some leftover from reduce or was put there by mistake --- core/frontend/services/sitemap/base-generator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/frontend/services/sitemap/base-generator.js b/core/frontend/services/sitemap/base-generator.js index 1e5995b5ba..83fa169e5d 100644 --- a/core/frontend/services/sitemap/base-generator.js +++ b/core/frontend/services/sitemap/base-generator.js @@ -32,7 +32,7 @@ class BaseSiteMapGenerator { ts: -(self.nodeTimeLookup[id] || 0), node: node }; - }, []); + }); // Sort nodes by timestamp const sortedNodes = _.sortBy(timedNodes, 'ts');