From 93bbd6912a3ec802c650dd0d5f52daa64f27e507 Mon Sep 17 00:00:00 2001 From: Du Peng Date: Tue, 4 Jul 2023 16:14:55 +0200 Subject: [PATCH] (bug) variable is not defined --- app/frontend/src/javascript/controllers/projects.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/frontend/src/javascript/controllers/projects.js b/app/frontend/src/javascript/controllers/projects.js index de52f50f5..c90980add 100644 --- a/app/frontend/src/javascript/controllers/projects.js +++ b/app/frontend/src/javascript/controllers/projects.js @@ -322,8 +322,8 @@ Application.Controllers.controller('ProjectsController', ['$scope', '$state', 'P $location.$$search.member_id = ''; } - fromDate = $location.$$search.from_date ? new Date($location.$$search.from_date) : undefined; - toDate = $location.$$search.to_date ? new Date($location.$$search.to_date) : undefined; + const fromDate = $location.$$search.from_date ? new Date($location.$$search.from_date) : undefined; + const toDate = $location.$$search.to_date ? new Date($location.$$search.to_date) : undefined; // default search parameters $scope.search = {