From 3882435f10d70ef47f4b189b9d032119335e5130 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 22 Sep 2017 11:05:50 +0200 Subject: [PATCH] fix creation date facet on issues page --- .../src/main/js/apps/issues/sidebar/CreationDateFacet.js | 4 +++- .../sonar-web/src/main/less/components/search-navigator.less | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js b/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js index 721c9c75e88..78edc628f71 100644 --- a/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js +++ b/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js @@ -106,7 +106,7 @@ export default class CreationDateFacet extends React.PureComponent { createdAt: undefined, createdInLast: undefined, sinceLeakPeriod: undefined, - [property]: toShortNotSoISOString(parseDate(value)) + [property]: value ? toShortNotSoISOString(parseDate(value)) : undefined }); }; @@ -199,12 +199,14 @@ export default class CreationDateFacet extends React.PureComponent {