diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-09-22 11:05:50 +0200 |
---|---|---|
committer | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-09-25 13:40:46 +0200 |
commit | 3882435f10d70ef47f4b189b9d032119335e5130 (patch) | |
tree | 2c6adc80f2f5816055749e21e63d44cdeaceaa17 /server/sonar-web/src/main/js/apps/issues | |
parent | c2332deafa0d57b39a0cd8f416203cc77c9df22a (diff) | |
download | sonarqube-3882435f10d70ef47f4b189b9d032119335e5130.tar.gz sonarqube-3882435f10d70ef47f4b189b9d032119335e5130.zip |
fix creation date facet on issues page
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues')
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js | 4 |
1 files changed, 3 insertions, 1 deletions
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 { <div className="search-navigator-date-facet-selection"> <DateInput className="search-navigator-date-facet-selection-dropdown-left" + inputClassName="search-navigator-date-facet-selection-input" onChange={this.handlePeriodChangeAfter} placeholder={translate('from')} value={createdAfter ? toShortNotSoISOString(createdAfter) : undefined} /> <DateInput className="search-navigator-date-facet-selection-dropdown-right" + inputClassName="search-navigator-date-facet-selection-input" onChange={this.handlePeriodChangeBefore} placeholder={translate('to')} value={createdBefore ? toShortNotSoISOString(createdBefore) : undefined} |