Skip to content

Commit

Permalink
removed today as defautl startDate fixes #363 by masking a state bug
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgirard committed Mar 2, 2017
1 parent 13d0caa commit 499faf1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/app/isari-list/isari-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ export class IsariListComponent implements OnInit {

// set date filters
const dateFilters = this.storageService.get('dateFilters', this.feature) || {};
this.dateForm.controls['startDate'].setValue(dateFilters['startDate'] || (!dateFilters['endDate']? this.today():''));
//We removed the adding today's date as defautl startDate
//This mask a bug: the setValue doesnot properly update the date fields
// when not reloading completely the page (type of activity switch)
this.dateForm.controls['startDate'].setValue(dateFilters['startDate'] || '');
this.dateForm.controls['endDate'].setValue(dateFilters['endDate'] || '');

this.selectedColumns = this.storageService.get('colSelected', this.feature);
Expand Down

0 comments on commit 499faf1

Please sign in to comment.