Skip to content

Commit

Permalink
fix: save date url param
Browse files Browse the repository at this point in the history
  • Loading branch information
gion-andri committed Jan 11, 2024
1 parent 6251af2 commit a811170
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/pages/events/events-list/events-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@ export class EventsListComponent implements OnInit, OnAttach, OnDetach, OnDestro
}

if (!!params['startDate']) {
// this.eventsFilterService.setStartDate()
const data = params['startDate'].split('-');
this.eventsFilterService.setStartDate({day: +data[0], month: +data[1], year: +data[2]});
}

if (!!params['searchTerm']) {
this.eventsFilterService.setSearchterm(params['searchTerm'])
this.eventsFilterService.setSearchterm(params['searchTerm']);
}

this.eventFilterUrlParamSubscription = this.eventsFilterService.getEventFilterUrlParamsObservable().subscribe((params) => {
Expand Down

0 comments on commit a811170

Please sign in to comment.