From: Stas Vilchik Date: Fri, 22 Sep 2017 09:05:50 +0000 (+0200) Subject: fix creation date facet on issues page X-Git-Tag: 6.6-RC1~249 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3882435f10d70ef47f4b189b9d032119335e5130;p=sonarqube.git fix creation date facet on issues page --- 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 {